tab based activities

munichxmedia

Member
Licensed User
Longtime User
Hi,

i want to programm a german cinema app, with 3 tabs and different activities. Is this possible? And is it possible to use a scrollview navigation as well.

regards

Christian
 

munichxmedia

Member
Licensed User
Longtime User
Hi,

thanks JonPM, one question about tabs is the battery power, if a tab is not active, does the activity of the tab run at the "backgorund". E.g the user is at the At cinema, is the tab movie still using cpu? i want zo programm the app to use less battery as possible.

ragards

Christian
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
Just like other activities, when they are removed from view the activity is Paused. I guess you could also end each activity when the user exits them as well.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I want to programm a german cinema app, with 3 tabs and different activities
I'm not sure if you understand how Activities do work?
If you use a TabHost view this one is in one Activity and the three Tabs, in your example, are Panels and you switch from one to the other. When you click on a Tab the relevat Panel is displayed.
The none visible Panels will not consume any battery power.
If you really want to use different Activities you should not use a TabHost view. Because as soon as you call a new Activity the TabHost disappears because it belongs to the previous Activity.

Best regards.
 
Upvote 0
Top