Pregunta

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.

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top