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. Bitmap.Compress.JPEG always saving with low compression level

Maybe I'm misreading, but wouldn't a compression level of 100 be the most
compressed (lowest quality) it could be?

- Dan


2. problem runnin Hello World Programme

hi there, i m trying to run " Hello World " programme , problem i am
facing is the following error when i run the programme :
" ERROR: Application does not specify a
android.test.InstrumentationTestRunner instrumentation or does not
declare uses-library android.test.runner "

before this it was givin java nullpointerexception error . i've just
formatted my mashine n b4 formatting i was not havin any problem in
runnin the programme.

Thanks in advance,

3. What happened with Network LocationProvider after 1.5 CRC37 update?

4. using pre-coded functionality

5. Determine Google Street View Availability

6. Problem with list view item selection

7. Perspective of 0xdroid installe