On Fri, Jul 10, 2009 at 8:36 AM, Alslayer<[email protected]> wrote:
>
>> I'm pretty sure there was more than just "NullPointerException" in the
>> log. Where exactly did this exception occur?
>
> Here is the full error.
>
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):
> java.lang.RuntimeException: Unable to start activity ComponentInfo
> {com.mycorp.myapp/com.mycorp.myapp.myapp}:
> java.lang.NullPointerException
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2268)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2284)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.app.ActivityThread.access$1800(ActivityThread.java:112)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.os.Looper.loop(Looper.java:123)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.app.ActivityThread.main(ActivityThread.java:3948)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> (ZygoteInit.java:782)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> dalvik.system.NativeStart.main(Native Method)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604): Caused by:
> java.lang.NullPointerException
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> com.mycorp.myapp.myapp.onCreate(myapp.java:35)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1123)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2231)
> 07-10 08:21:04.030: ERROR/AndroidRuntime(11604):     ... 11 more
>
> The code from the last post has lines 32-49.

If I'm reading that correctly that means it is crashing on:
mp.setDisplay(sv.getHolder()) so either mp or sv is null.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to