Video playback on VideoView disappears after going back from another Activity

Posted by pixel on Stack Overflow See other posts from Stack Overflow or by pixel
Published on 2010-06-08T12:15:22Z Indexed on 2010/06/08 12:22 UTC
Read the original article Hit count: 318

I have two Activities: one with VideoView and the second one.
I start watching a video in the first Activity, then during playback I start second Activity.
After going back to first Activity I can hear sound but see no picture.

My Video Layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
      <VideoView android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:layout_weight="1"
    android:id="@+id/videoView" android:layout_gravity="center" />      
<ListView android:layout_width="fill_parent" android:layout_height="125dp" android:id="@+id/ListView" />
</LinearLayout>

Do you have any ideas why video doesn't appear?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk