Passing a 2 dimensional array to an Activity

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

Sponsored Links

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.


Best Regards,

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


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

Mark Murphy (a Commons Guy)  | 

Android App Developer Books: 


Other Threads

1. Filter Label Gmail

Bagus untuk yg ga mau pakai banyak account email dan ikutan beberapa milis..

contoh dgn 4 milis..(gambar 1)

Step di PC
1. Login ke gmail
2. klik setting - Filter
3. Create New Filter
4. ketik nama milis seperti di gambar 2
5. Klik Next Step
6. Centang "*Apply The Label*"
7. Pilih "*New Label*"
8. Ketik Nama Label (sesuai nama milis)
9. Centang "*Also Apply filter to....*"
10. Klik Update Filter

ulangi untuk milis yg lain..
Di Step 6 ada banyak pilihan, seperti "*skip the inbox (Archive it)*"
berfungi agar email yg masuk ga keluar di inbox, tapi langsung muncul di
filter label, sayangnya kalo kita aktifkan ini maka setiap ada email dari
milis yg kita filter ga keluar notifikasinya..

Step di Android
1. Tap lama di Home Screen
2. Tap Shortcut
3. Tap Gmail Label
4. Scroll kebawah sampai nampak label yg kita buat..Tap Label tersebut..

Ulangi langkah diatas untuk setiap Filter label yg telah kita buat


Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to

To request to subscribe to this group:


2. Problem while sending unicode character via SMS

How are you all?

I am developing application for android phone. Currently I am testing
my system in the emulator. In my application, I want to send unicode
character (Amharic language character) via SMS to the other emulator
instance. But in the receiver side, the message is not viewed
properly. I think the problem is some character encoding related

In addition similar problem happens for texts which are queried for
the sqlite database. that is when I send a query result via SMS the
same problem occurs. Please help me.

Sorry for posting the same message again. Please help me.

Thank you



3. How can the vold detect the SD card insert/remove?

4. How to replace JPEG codec with our own hw codec?

5. Question regarding Heap size behaviour

6. focus control in compund control?

7. Broadcasting Intent from native code