Sunday, December 20, 2009

[android-developers] Only onCreate and no onRestart after startActivity ! Please Help

Hi,
its quiet urgent. I thought my project and now i found a big bug.

I have a webview and there I call an activity

if (url.indexOf(".mp4") != -1) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(url), "video/
mp4");
startActivity(intent);
return true;
}

The Videoplayer starts fine!

But when I click "BACK" or the Video ends... my whole Activity is
restarted with onCreate... I proofed.. and it does NOT call
onRestart!!!

So it always loads Splashscreen and all that again...

What could I do??

Thx
Chris

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