Android ViewRoot NullPointerException?

I'd highly suggest reworking the way you're using the video player activity. If you just want to play a video, use the VideoView and embed it in an XML layout The way you're starting an activity and stealing its view looks like you're trying to work around the framework, which is going to lead to all sorts of wacky errors like this It seems as though I didn't understand ActivityGroup s very well. Still, I think this could probably be simplified somehow.

I'd highly suggest reworking the way you're using the video player activity. If you just want to play a video, use the VideoView and embed it in an XML layout. The way you're starting an activity and stealing its view looks like you're trying to work around the framework, which is going to lead to all sorts of wacky errors like this.It seems as though I didn't understand ActivityGroups very well.

Still, I think this could probably be simplified somehow.

– MByD Jun 3 at 20:36 Yeah, I meant a video view. Corrected in the answer text. – Steve Pomeroy Jun 4 at 0:53.

12-15 07:04:49.668: E/AndroidRuntime(331): java.lang. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.AbsListView. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.ListView.

12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.ListView. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.ListView. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.ListView.

12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.AbsListView. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.view.View. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.LinearLayout.

12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.LinearLayout. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.LinearLayout. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.view.View.

12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.FrameLayout. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.view.View. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.LinearLayout.

12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.LinearLayout. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.LinearLayout. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.view.View.

12-15 07:04:49.668: E/AndroidRuntime(331): at android.widget.FrameLayout. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.view.View. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.view.ViewRoot.

12-15 07:04:49.668: E/AndroidRuntime(331): at android.view.ViewRoot. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.os.Handler. 12-15 07:04:49.668: E/AndroidRuntime(331): at android.os.Looper.

12-15 07:04:49.668: E/AndroidRuntime(331): at android.app.ActivityThread. 12-15 07:04:49.668: E/AndroidRuntime(331): at java.lang.reflect.Method. 12-15 07:04:49.668: E/AndroidRuntime(331): at java.lang.reflect.Method.

12-15 07:04:49.668: E/AndroidRuntime(331): at com.android.internal.os. 12-15 07:04:49.668: E/AndroidRuntime(331): at com.android.internal.os.ZygoteInit. 12-15 07:04:49.668: E/AndroidRuntime(331): at dalvik.system.NativeStart.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions