Put your problem here if it does not fit any of the other categories.


Postby blackbelt » Sun Nov 07, 2010 9:32 am

Can Somebody suggest me some documentation and/or example about bundles? How they store and retrieve information on activity switch for instance.. and once more question. Control field, like TditText, checkbox etc preserve their state when an activity switch occurs? (if something is typed in, when my activity gains again the screen what was typed is yet there o I need to save (bundle? sharedPreferences? and then restore)?

thanks in advance

ps. I tried to "print" all the keys in the bundle when an activity switch occurs but the only key I found was android:viewHierarchyState..
Junior Developer
Junior Developer
Posts: 12
Joined: Thu Oct 07, 2010 8:28 am


Re: Bundle

Postby blundell » Wed Nov 10, 2010 5:10 pm

http://developer.android.com/reference/ ... stentState

Is probably what your looking for.

"activity switch" Can mean two different things, chaning activity or the activity restarting (i.e. rotation change)

Is this what you wanted to know about bundle's:
http://www.remwebdevelopment.com/dev/a3 ... ities.html

Guess you best get reading ! :-p
User avatar
Master Developer
Master Developer
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 7 guests