I learned something new! Thanks, Dianne.

On Dec 8, 7:24 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> You can use Activity.onRetainNonConfigurationInstance() to transfer an
> active object across activity instances.  Just be careful that the object
> doesn't continue referencing the old activity.
>
> On Sun, Dec 7, 2008 at 12:59 AM, ben rosenberg <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > hey folks,
>
> > to make a long story short, I'm working on an app that plays streaming
> > video content in a VideoView with a MediaController; Im wondering how
> > I can preserve the state of my VideoView across orientation changes,
> > such that opening the keyboard doesn't restart the playback, etc..
>
> > I've been messing around with onSaveInstanceState, but Im fairly
> > certain I'm missing something (possibly Parcelized objects?) ..
> > Ideally i think I'd like to save and restore the state of the
> > MediaPlayer,  as well as an HttpClient (or at least its cookiejar) ...
> > I suspect this will have to be done with Parcelables, but I don't
> > quite have my head around how those work (and the Notepad example
> > hasn't helped)..
>
> > any suggestions, or especially code or pseudocode examples, would be
> > greatly apprectiated
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to