Monday, July 15, 2013

Re: [android-developers] Re: Seekbar Save state and restore


On Mon, Jul 15, 2013 at 9:45 PM, Keith Zettler <leftcontact@gmail.com> wrote:
I am trying to save the actual position of 200 seekbars on one activity.
 
Two hundred? In one activity? Jesus. That does not seem right ... but hey, it's your app.

I think this means i have to save/restore the position of the seekbars and the integer value of the seekbar

Yes...
 
before the activity was paused?

Pay special attention to the part about saving state.
 
i had read the API and it made no reference to seekbars .

You're quite hung up on these Seekbars. Again, these are just another widget like any other - there's nothing special about them that would require special mention of how to handle saving and restoring their state.

What would be the correct way to accomplish the above TreKing?

Read the links I gave you, then implement the correct methods to save and restore (onSaveInstanceState, onRestoreInstanceState, respectively) the states of your seekbars.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment