Android wrote: > Hi, > > 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); > startActivity(sendIntent); > > 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 ?
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) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

