Miguel Paraz wrote: > On Apr 1, 1:55 pm, Zhubham <[email protected]> wrote: >> I need to pass a 2 dimensional array to an ACTIVITY from a SERVICE. >> How can I achieve this in minimum number of statements (as in avoiding >> putExtras for each and every string stored in the array)?? > > Hi, > You could use the JSON en/decoding functions. You can store lists and > maps of Strings. They probably consume more CPU, though.
If the service is in the same process as the activity, you can use the singleton pattern and have the activity call some method on the service object. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

