Monday, August 6, 2012

[android-developers] Re: how to store the data in cache/temp memory

Probably your best options are the Parcelable interface and the Bundle, remember that Android is an OS aimed for mobile not for desktop.

http://developer.android.com/reference/android/os/Parcelable.html

http://developer.android.com/reference/android/os/Bundle.html

according to what Google and the Android team says, Parcelable is more efficient than Bundle.

There is also Serializable but is highly discouraged

http://developer.android.com/reference/java/io/Serializable.html

Il giorno lunedì 6 agosto 2012 11:39:10 UTC+2, vamshi ch ha scritto:
Hi,

I have an App that i want to store the data in cache/temp memory before saving the data in DB like  I have created an application with 2 activities, where A  , B . if I go through A -> B, in B I've some fields  I would like to have its data cached somewhere  then I'm back to A , then If i save the A fields in DB then only i needs to save B fields.  if I'm not saving any data fields in A so B fields will not be save..

Until and unless saving the data in A then only B fields needs to save.

Can anyone help me with a code snippet.

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

No comments:

Post a Comment