referring at the diagram below:
http://developer.android.com/guide/components/fragments.html
Could someone please please explain why Google suggests to use 2 separate activities on a Phone and a single activity on a Tablet?
If I have code in activity A to manage Fragment B (for a Tablet) why should I repeat the same code in Activity B for a phone?
It seems that for a Phone I can still use 1 activity as well (only activity A) and replace fragments, this could reduce redundant code?
Thanks.
I get what you mean..
You could use a fragment container and replace the fragments, define interface for selection callback. Google just does it this way maybe its clearer for those who come from the activities world i guess.