[android-developers] Re: Getting variables from tab activity in the child activities

2010-09-08 Thread Lance Nanek
http://developer.android.com/reference/android/app/Activity.html#getParent%28%29

On Sep 8, 4:31 pm, tatebn  wrote:
> If I have a tab activity with multiple tabs, each containing a
> different activity, is it possible to have a variable in the tab
> activity and access it from the child activities?  How would I do that?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Getting variables from tab activity in the child activities

2010-09-08 Thread Mark Wyszomierski
I think you'd have to use static variables (a singleton could be
nice), write to the prefs, stuff like that.

On Sep 8, 1:31 pm, tatebn  wrote:
> If I have a tab activity with multiple tabs, each containing a
> different activity, is it possible to have a variable in the tab
> activity and access it from the child activities?  How would I do that?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en