Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top