On Sun, Jul 14, 2013 at 11:34 AM, Keith Zettler <[email protected]>wrote:

> So we come full circle . How exactly can i save/restore this seekbar if
> user uses back button or activity is destroyed. Does anyone have a seekbar
> specific example ?


First, did you read the link I provided?

Second, I assume you don't want to save the actual Seekbar, because that
does not make sense. So what exactly is it about the Seekbar that you're
trying to save?

Third, you don't need a "seekbar specific example" because there's nothing
special about a Seekbar when it comes to saving and restoring state.


On Sun, Jul 14, 2013 at 12:42 PM, Fred Niggle <[email protected]>wrote:

> I think you mean save the position of the seekbar (eg users preference)
> then you can use shared prefs .
> this thus:
> onCreate reads the shared prefs and sets the value of the seekbar
> your 'save' function then writes the value to shared prefs.
>

If this is what the OP was referring to, then this will work just fine. If
he just needs to keep the current value of the seekbar in tact during the
current session and it is not a user preference that should persist, then
this is not the technically correct way to go about it, though it would
work.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to