Question

I'm working on an Android Application where the MainActivity is a TabActivity, There are Three other Activities : ACT1, ACT2 and ACT3 that are The MainActivity tabs, is it possible to change the MainActivity current tab inside ACT1, ACT2 or ACT3.

Was it helpful?

Solution

you would essentially cast your reference to the parent to the actual class of the parent and then make a call to some public method that would do what you're looking to do.

here is an example

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