Android Fragments and Activities
问题 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. 回答1