I read through the android doc about supporting both but what is not really explained is how will you know when to call the activity for a phone and an activity for a tablet?
What I mean by that is lets say on a tablet I have 2 fragments, a list view and some other fragment that changes based on the list view click. Now on a phone I obviously don’t want that tablet view because everything would be too compact so I would want to start an activity with a list view then go to another activity with the other fragment.
I know about the different layout folders types and I already use that i.e. layout,layout-sw600dp,layout-sw720dp to call that layout across screen sizes but the regular layout view does not have all parts because thats the phone layout so how do I handle that?
The Google I/O app is a good example. Basically you have different layouts that contain different Fragments for different devices. Since each Fragment manages itself like an Activity you don’t have to do much beyond creating layouts of fragments.
There is also a nice video that explains a lot about that app.