Saturday, April 7, 2012

Re: [android-developers] Global variable extend application class

On Sat, Apr 7, 2012 at 9:13 PM, Etienne <lawloretienne@gmail.com> wrote:
I am setting the member variable in onActivityResult(), and i am trying to access this member variable in the onClick() method of a button's onClickListener. When i access the String variable it's value is set appropriately. However when i access the HashMap variable its value is set to '{}', an empty HashMap.

You have a bug. Without posting the relevant code, like where you set and get the HashMap and its data, it's impossible to help you.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate