Reputation: 572
hi to all I what to know how to save data in next activity
Upvotes: 1
Views: 572
Reputation:
u can use intents, bundles, or any other static variables to holds data from one activity to another
Upvotes: 0
Reputation: 37729
Use Intent
to pass data from one Activity
to another Activity
.
But these Intents may carry native data types like String, int, float, double
etc.
If you want your own Object
to be passed, you would have to implement Serializable
interface.
An odd way is to use a static Object in a class which is globally accessible.
Upvotes: 1
Reputation: 3934
you should explain clearly about your requirement. As i have understood, i think you want to access data which belongs to one activity in the other activity.
Refer the link below, you will get a clear idea.
http://developer.android.com/resources/faq/framework.html#3
Upvotes: 0