Sunday, December 20, 2009

Re: [android-developers] After Activity closed, restart of APP??

guruk wrote:
> Hi,
>
> I check within a Webview for a mp4 than I call:
>
> Intent intent = new Intent(Intent.ACTION_VIEW);
> intent.setDataAndType(Uri.parse(url), "video/mp4");
> startActivity(intent);
> return true;
>
> to start the Videoplayer with that VideoUrl
>
> FINE, works perfect.
>
> But when i close the Videoplayer I would wish (and it was once)
> that he just show the Webview as it was before (with the link to the
> video)
>
> Instead it restarts my App . goes onCreate again and than jumps in
> onResume??
> Usualy after an Activity is closed it jumps into the onRestart !!!
>
> So what could be wrong??

Perhaps your activity was destroyed to free up memory for the video
playback, and then has to be re-created after you BACK out of the video
player.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate