This is actually extended version of Alternatives to using an activity for each tab. The point is using views instead of activity is actually a good idea. If I have a button or some text then its fine. But what if I actually want an activity to be started on tab change, like a camera ? Is it still efficient to use views instead of activity ? If so, how do I do it ? Because calling new intent everytime is also heavy on memory I think.
This is actually extended version of Alternatives to using an activity for each tab
Share
If you want an activity launched with a tab change, then use activities. Don’t get hung up on efficiency unless you’re certain you have problems.
Views are presumably more efficient because they don’t launch an activity, but since you’re launching an activity anyway, what do you gain? I use tabbed activities in my app and they’re fine, even on my underpowered phone.
Remember…