Dear all
Recently ,I use a intent to jump to the MovieView.but something is
wrong.But I don't konw where the wrong is .

 Intent intent =new Intent(Test.this,MovieViewTest.class);
                    intent.setData(Uri.parse(url));
                    intent.setType("video/*");
                    intent.setAction(Intent.ACTION_VIEW);
                    startActivity(intent);
__________________________________________________________________________
D/StatusBar(  582): updateResources
D/AndroidRuntime(  907): Shutting down VM
W/dalvikvm(  907): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
E/AndroidRuntime(  907): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  907): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.android.Test/
com.android.Test.MovieViewTest}: java.lang.ClassCastException:
android.widget.VideoView
E/AndroidRuntime(  907):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
E/AndroidRuntime(  907):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
E/AndroidRuntime(  907):        at android.app.ActivityThread.access$1800
(ActivityThread.java:112)
E/AndroidRuntime(  907):        at android.app.ActivityThread$H.handleMessage
(ActivityThread.java:1692)
E/AndroidRuntime(  907):        at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime(  907):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  907):        at android.app.ActivityThread.main
(ActivityThread.java:3948)
E/AndroidRuntime(  907):        at java.lang.reflect.Method.invokeNative
(Native Method)
E/AndroidRuntime(  907):        at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime(  907):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime(  907):        at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:540)
E/AndroidRuntime(  907):        at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime(  907): Caused by: java.lang.ClassCastException:
android.widget.VideoView
E/AndroidRuntime(  907):        at com.android.Test.MovieViewTest.onCreate
(MovieViewTest.java:69)
E/AndroidRuntime(  907):        at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
E/AndroidRuntime(  907):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
E/AndroidRuntime(  907):        ... 11 more

________________________________________________________________________


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to