On Sat, Dec 18, 2010 at 12:08 AM, TreKing <[email protected]> wrote:

> On Fri, Dec 17, 2010 at 12:36 PM, cuil yahoo <[email protected]> wrote:
>
>> I get a null pointer exception on the onCreate method of the second class.
>>
>
>
> And the stack trace is?
>
>
These are my logcat contents,


12-18 00:38:43.959: WARN/dalvikvm(443): threadid=1: thread exiting with
uncaught exception (group=0x4001d800)
12-18 00:38:43.989: ERROR/AndroidRuntime(443): FATAL EXCEPTION: main
12-18 00:38:43.989: ERROR/AndroidRuntime(443): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{my.uiplay/my.uiplay.GreenActionButton}:
java.lang.NullPointerException
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.os.Handler.dispatchMessage(Handler.java:99)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.os.Looper.loop(Looper.java:123)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
java.lang.reflect.Method.invokeNative(Native Method)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
java.lang.reflect.Method.invoke(Method.java:521)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
dalvik.system.NativeStart.main(Native Method)
12-18 00:38:43.989: ERROR/AndroidRuntime(443): Caused by:
java.lang.NullPointerException
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
my.uiplay.GreenActionButton.onCreate(GreenActionButton.java:25)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
12-18 00:38:43.989: ERROR/AndroidRuntime(443):     ... 11 more
12-18 00:38:44.029: WARN/ActivityManager(38):   Force finishing activity
my.uiplay/.GreenActionButton
12-18 00:38:44.049: WARN/ActivityManager(38):   Force finishing activity
my.uiplay/.UIPlay

--Cuil




>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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