[android-beginners] Re: Pass data between activitys

2009-09-30 Thread DWischer

Great, thanks a lot.

On 29 Sep., 23:25, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 yes, the object needs to be serializable or parcelable.

 On 9/29/09 2:22 PM, DWischer wrote:



  On 29 Sep., 20:11, Mark Murphymmur...@commonsware.com  wrote:

  Use putExtra() on the Intent you use to launch the new Activity. The new
  Activity can then use getExtra() to retrieve them.

  Is it possible to pass complete Java objects via putExtra? I just
  found functions for passing simple data types.

 --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Pass data between activitys

2009-09-29 Thread Mark Murphy

DWischer wrote:
 Hi,
 
 in my app, i got a login screen and a screen, where the user
 information should be displayed. So, when the button is pressed, a
 login request will be made and in case of sucess, a new activity
 should be displayed.
 For later requests, i need the entered login data from the login
 screen in my other activitys to process further requests.
 So the question is, how to pass data from activity to activity.

Use putExtra() on the Intent you use to launch the new Activity. The new
Activity can then use getExtra() to retrieve them.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 Available!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Pass data between activitys

2009-09-29 Thread DWischer



On 29 Sep., 20:11, Mark Murphy mmur...@commonsware.com wrote:
 Use putExtra() on the Intent you use to launch the new Activity. The new
 Activity can then use getExtra() to retrieve them.

Is it possible to pass complete Java objects via putExtra? I just
found functions for passing simple data types.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Pass data between activitys

2009-09-29 Thread Jeffrey Blattman




yes, the object needs to be serializable or parcelable.

On 9/29/09 2:22 PM, DWischer wrote:

  


On 29 Sep., 20:11, Mark Murphy mmur...@commonsware.com wrote:
  
  
Use putExtra() on the Intent you use to launch the new Activity. The new
Activity can then use getExtra() to retrieve them.

  
  
Is it possible to pass complete Java objects via putExtra? I just
found functions for passing simple data types.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---

  


--