Question

I have developed this application which uses an ActivityGroup to switch between Activitys in a tab. I have downloaded the newest AdMob SDK, forcing me to use a targetSdkVersion of 13 instead of 8. Because of that, I get the warning that ActivityGroup is deprecated.

What is the new way of switching between Activitys in a single tab? I'd rather keep my minSdkVersion at 8. And are there any examples of it?

Was it helpful?

Solution

What is the new way of switching between Activitys in a single tab?

There is no "new way of switching between Activitys in a single tab". The closest thing to a "new way" is to not use activities-in-tabs, but to use fragments-in-tabs, or tabs in the action bar (that alter the UI, such as by changing fragments).

The JavaDocs for TabActivity show how to implement fragments-in-tabs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top