Retain intentions using fragments? Or did Android break the universe?


I'm in the process of converting from an startActivity/Intent based model to a fragment based model. Is there any way I can preserve all my code which passes information to an activity (which I'm now converting into Fragments) via Intent??

Fragments need to be in an activity though, so the information passing model hasn't changed at all. You just need to pass the appropriate data to each fragment from your activity. If you are passing the same data as before, the code that stuffs data into an intent's extras before calling startActivity() doesn't need to change. You just need to change how your activities handle the extras.