[android-developers] Re: MediaPlayer and onSaveInstanceState?

2008-12-12 Thread ben rosenberg
I'm afraid I may have oversimplified, it would appear I have two different issues that need to be addressed.. as regards the media player, I am mostly interested in maintaining playback across orientation changes.. losing the mediaplayer state on release of focus is not a problem (and indeed, i s

[android-developers] Re: MediaPlayer and onSaveInstanceState?

2008-12-09 Thread Dave Sparks
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 acti

[android-developers] Re: MediaPlayer and onSaveInstanceState?

2008-12-08 Thread Dianne Hackborn
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 lon

[android-developers] Re: MediaPlayer and onSaveInstanceState?

2008-12-08 Thread Dave Sparks
The HTTP session isn't controlled by the Java application, the media framework has its own HTTP client. The Java proxy object for the network session is the MediaPlayer object which is owned by VideoView. You could retain a reference to the VideoView object across the orientation change, so that

[android-developers] Re: MediaPlayer and onSaveInstanceState?

2008-12-08 Thread ben rosenberg
bump --~--~-~--~~~---~--~~ 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