John Merlino wrote: > I think the type declaration " Map<String, String>" was turning it > into a local variable, but when I remove that, the error goes away and > it becomes part of the instance variables of the class >
What you said there doesn't make sense. A variable has to be explicitly declared as a class or instance member; it doesn't just magically appear when you remove a local variable. What error? You didn't mention any error before. > > TreKing wrote: > > John Merlino wrote: > >> I have a thread to make a web service request. And then I get the data > and > >> store it in response variable. Now I need to add items to the map on > the > >> main thread, but how do i get the response data back in the main > thread. > > > > Use AsyncTask. > The code you posted essentially doesn't do anything at all. How about you post a useful example, an SSCCE, following the guidelines at http://sscce.org/? -- Lew -- 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