Passing parameters to new Activity

by vincent.gann...@gmail.com » Tue, 03 Mar 2009 02:52:03 GMT


Sponsored Links
 Hi all,

I'm programming an Activity that launches a second one through
startActivity just like in the Forwarding example. The main difference
is that I'd like to pass some data to the second Activity when
starting it, for example an item selected in a list owned by the first
Activity. I can't find how to do that... Am I missing something? I
guess I do.

Thank you for helping me.

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



Passing parameters to new Activity

by Marco Nelissen » Tue, 03 Mar 2009 03:08:45 GMT


 You can add 'extras' to the Intent that you use to start the 2nd Activity.


On Mon, Mar 2, 2009 at 8:34 AM, vincent.gann...@gmail.com



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


Sponsored Links


Passing parameters to new Activity

by vincent.gann...@gmail.com » Fri, 06 Mar 2009 21:46:36 GMT


 Works fine! Thanks Marco.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Moto Droi

Permisi , numpang lapak yah ..

Moto Droid , sudah ter inject no Smart , fullset , baru datang dr negeri jauh 
disana , rooted , eclair 2.1 , belum pernah dipakai ...masuk nya baru apa 
gimana yah ? Bingung juga hehe ... Dilego @3,7juta saja nett.

Moto Droid second mulus , hanya bag depan ada bekas pemakaian , kondisi ok ga 
ada macem2 nya , ter inject smart , rooted , eclair , hp + charger + 16gb 
sdcard , dilego @2,9juta saja nett.


Posisi Bandung , japri ary.ma...@ymail.com / 08122 1111 191.


Thank's 

Ary Malik

-- 
"Indonesian Android Community [id-android]" 

2. Gallery

I have a gallery view with a number of views, each of which fills the
display. So there on view of the gallery per display. Also each view
is filled with selectable buttons. Similar to the calendar where a
view of the month fills the entire display. To go to the next/
previous month one must scroll by sliding a finger across the display.
Also, Each month is filled with a grid of selectable days. My gallery
works the same. The problem is that when I slide my finger to scroll
the gallery the buttons on the view get selected instead. I want to
select the buttons only when I touch the screen as opposed to sliding
it.

Is the choice of the gallery view a bad one? and if so what the
better way to accomplish it?

-- 

3. Coordinating Activity life cycle with Service life cycle

4. App closes automatically - Native code crash?

5. How can I pass my custom object to onSaveInstanceState?

6. long process of automatic configuration after installation

7. Suggested test device -- must it be unlocked?