Passing a 2 dimensional array to an Activity

by Zhubham » Wed, 01 Apr 2009 13:55:12 GMT


Sponsored Links
 Hi,

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)??

Please help me with this.

Thanks.

Best Regards,
Zhubham
--~--~---------~--~----~------------~-------~--~----~



Passing a 2 dimensional array to an Activity

by dillirao malipeddi » Wed, 01 Apr 2009 19:11:40 GMT


 you can do in this way also...

Use a static two dimensional array in separate class and use it in service
and activity






-- 
Dilli Rao. M

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Passing a 2 dimensional array to an Activity

by Miguel Paraz » Wed, 01 Apr 2009 20:21:09 GMT


 


Hi,
You could use the JSON en/decoding functions. You can store lists and
maps of Strings. They probably consume more CPU, though.
--~--~---------~--~----~------------~-------~--~----~



Passing a 2 dimensional array to an Activity

by Mark Murphy » Wed, 01 Apr 2009 20:25:07 GMT


 




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 

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Paint.setTextSize & ascent & descent.

Ascent and descent are pulled from the font data, so I think stupid  
interpolations are you best bet.





--~--~---------~--~----~------------~-------~--~----~

2. Installing ADT

I am trying to install ADT onto Eclipse.

When I click the Install button a progress bar comes up and says
"Calculating requirements and dependencies". Then it just sits there
and doesn't do anything. I've tried leaving it there for some time,
but nothing changes.

I have tried downloading the package and installing it locally too,
but I got the same issue.

Also, I have tried redownloading different versions of Eclipse, but
that didn't seem to help either. ><

I am new to Eclipse and Android so any help would be greatly
appreciated.

Thanks,

Zach.

--~--~---------~--~----~------------~-------~--~----~

3. Paint.setTextSize & ascent & descent

4. Incoming Call Event

5. call reject

6. intercept an incoming in sdk1.0

7. About android first phone release