Send Data to the other Activity

by Android » Wed, 07 Jan 2009 18:27:02 GMT

Sponsored Links

I am trying to start a new Activity from my Activity. For this am
creating an intent as

Intent sendIntent = new Intent(this,Newactivity.class);

With the above i am able to launch my new Intent.
If I want to send some data from Current Activity to the Newactivity
(Where my Newactivity have a text box). The data i send from
CurrentActivity to Newactivity should be displayed in this text box.

Can anyone help me out how to do this ?



Send Data to the other Activity

by Mark Murphy » Wed, 07 Jan 2009 21:01:27 GMT


You'll want to use the "extras" in Intents. Look at putExtra() and the
corresponding getXXXExtra() (where XXX is some data type).

Mark Murphy (a Commons Guy) 
_The Busy Coder's Guide to Android Development_ Version 1.9 Published!


Sponsored Links

Send Data to the other Activity

by PRATAP SOLAPUR » Fri, 09 Jan 2009 00:01:17 GMT

 To your Intent add the data using
method and in the second activity in which u want to display use
 to retrieve ur data n then display


Other Threads

1. No Future Support for JNI

JNI is working fine in the first release of Android
SDK & we tested.
If JNI is not supported in future releases then the Android phones
will not be able to RUN lot of Application written in JSR.
Currently there are so many free java apps written in JSR(e.g by using
JSR135, JSR180 etc) which rely on the platforms native API to realise.
                 Also lot of intelligent code has already been
wriiten in C, C++ by many phone companies like Motorola, Nokia which
are very tested & already in production phones. In future if they want
to leverage these codes thru java apps to Android platform, it wld not be
without JNI or something similar to it.



2. phone feature abstractions to PC

I am interested in developing apps on pc's that would synchronize with
the phone..

is android therefore capable of allowing me to for example abstract
the calendar feature on the phone onto a widget I for example build on
a PC?  so I can use that feature on the PC when my phone is
hope u guys understand my question..

If so, point me on the way..


3. What's the usage of the card when register android market account

4. Android Framework

5. GMail Client Source

6. FireWall Packets in Jitter Buffer

7. Turning off SetColorFilter()