Android Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingAndroid Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 31st, 2012, 12:19 PM
pipsqueaker117 pipsqueaker117 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 7 pipsqueaker117 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 7 sec
Reputation Power: 0
Help with errors

Dear developers,

My android app installs onto the android virtual machine fine, but when it is opened this error message comes up (in eclipse)
Code:
03-31 16:53:30.197: E/AndroidRuntime(1894): FATAL EXCEPTION: main 03-31 16:53:30.197: E/AndroidRuntime(1894): java.lang.RuntimeException: Unable to start activity ComponentInfo{pipsqueaker.TextSmart.sparkbat.test/pipsqueaker.TextSmart.sparkbat.test.StartingPoint}: java.lang.NullPointerException 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.app.ActivityThread.access$600(ActivityThread.java:123) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.os.Handler.dispatchMessage(Handler.java:99) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.os.Looper.loop(Looper.java:137) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.app.ActivityThread.main(ActivityThread.java:4424) 03-31 16:53:30.197: E/AndroidRuntime(1894): at java.lang.reflect.Method.invokeNative(Native Method) 03-31 16:53:30.197: E/AndroidRuntime(1894): at java.lang.reflect.Method.invoke(Method.java:511) 03-31 16:53:30.197: E/AndroidRuntime(1894): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 03-31 16:53:30.197: E/AndroidRuntime(1894): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 03-31 16:53:30.197: E/AndroidRuntime(1894): at dalvik.system.NativeStart.main(Native Method) 03-31 16:53:30.197: E/AndroidRuntime(1894): Caused by: java.lang.NullPointerException 03-31 16:53:30.197: E/AndroidRuntime(1894): at pipsqueaker.TextSmart.sparkbat.test.StartingPoint.onCreate(StartingPoint.java:31) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.app.Activity.performCreate(Activity.java:4465) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 03-31 16:53:30.197: E/AndroidRuntime(1894): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) 03-31 16:53:30.197: E/AndroidRuntime(1894): ... 11 more 03-31 16:54:07.618: E/AndroidRuntime(1922): FATAL EXCEPTION: main 03-31 16:54:07.618: E/AndroidRuntime(1922): java.lang.RuntimeException: Unable to start activity ComponentInfo{pipsqueaker.TextSmart.sparkbat.test/pipsqueaker.TextSmart.sparkbat.test.StartingPoint}: java.lang.NullPointerException 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.app.ActivityThread.access$600(ActivityThread.java:123) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.os.Handler.dispatchMessage(Handler.java:99) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.os.Looper.loop(Looper.java:137) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.app.ActivityThread.main(ActivityThread.java:4424) 03-31 16:54:07.618: E/AndroidRuntime(1922): at java.lang.reflect.Method.invokeNative(Native Method) 03-31 16:54:07.618: E/AndroidRuntime(1922): at java.lang.reflect.Method.invoke(Method.java:511) 03-31 16:54:07.618: E/AndroidRuntime(1922): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 03-31 16:54:07.618: E/AndroidRuntime(1922): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 03-31 16:54:07.618: E/AndroidRuntime(1922): at dalvik.system.NativeStart.main(Native Method) 03-31 16:54:07.618: E/AndroidRuntime(1922): Caused by: java.lang.NullPointerException 03-31 16:54:07.618: E/AndroidRuntime(1922): at pipsqueaker.TextSmart.sparkbat.test.StartingPoint.onCreate(StartingPoint.java:31) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.app.Activity.performCreate(Activity.java:4465) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 03-31 16:54:07.618: E/AndroidRuntime(1922): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) 03-31 16:54:07.618: E/AndroidRuntime(1922): ... 11 more

To maintain secrecy I haven't attached the corresponding project, although this, I realize, is just me being paranoid and hindering the debugging effort for you. However, I would appreciate if you could pick through the error list and tell me where to make changes (general, as specific changes are impossible). However, the line concerned in the error message
Code:
03-31 16:54:07.618: E/AndroidRuntime(1922): at pipsqueaker.TextSmart.sparkbat.test.StartingPoint.onCreate(StartingPoint.java:31)
is
Code:
final String input = UserInput.toString();

I hope to see your answers, and thank you in advance!

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingAndroid Development > Help with errors

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap