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. CursorAdapter - Need example

Hello everyone,

Are there any good examples on how to write a CursorAdaptor? Has
anyone (outside of Google) successfully written a CursorAdaptor?

I'm working with a ListActivity and need to map an icon ID in my
SqlLite table to an actual icon image. My CursorAdaptor should take
the icon ID and replace the default icon in the list item XML with the
appropriate icon.

I've been told that a CursorAdaptor is the best way to do this. That I
can insert myself into the list item drawing process and take
responsibility for changing that one bit of the drawing process.

If any of you have a good example of how to write a CursorAdaptor, I'd
appreciate it.

Peter


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

2. Ticker scrolling on screen startup

Seems like we can start Ticker only on some key event. Is that
possible to start the ticker on screen startup?
--~--~---------~--~----~------------~-------~--~----~

3. opengl: gluProject() in GL10

4. application freezing with Looper

5. File Upload/Download -- Best practices...

6. Partial changes to the existing applications

7. New DroidDraw Release...