views:

37

answers:

0

This should have been the simplest thing, but I can't get it to run. The following XML layout will cause Error inflating AppWidget AppWidgetProviderInfo exception:

>     <?xml version="1.0" encoding="utf-8"?> <LinearLayout
> xmlns:android="http://schemas.android.com/apk/res/android"
>   android:layout_width="wrap_content"
> android:orientation="vertical"
>   android:background="@drawable/video_bk"
> android:layout_gravity="center"
>   android:layout_height="wrap_content">   
> 
>   <VideoView
> android:layout_height="fill_parent"
> android:layout_width="fill_parent"
> android:id="@+id/VideoView"></VideoView>
> </LinearLayout>

What am I doing wrong here? I even thought about dynamically adding the VideoView to the LinearLayout at run-time, but failed, so if anyone have an idea about how to do that - it will be great!

Thank you.