Thanks, There appear to be a bunch of errors: E/dalvikvm( 237): Unable to open stack trace file '/data/anr/ traces.txt': Permission denied
I'm new to java and down in the log I see an "uncaught exception". I guess a figure out exception handling and do it on the sendSMS class? adb logcat results: I/ActivityManager( 52): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=xxx.xxx.xxx.xxxx/.project } I/ActivityManager( 52): Start proc xxxxxxxxxxxxx for activity xxxxxxxxxxxxx/.projectname: pid=237 uid=10024 gids={} D/ddm-heap( 237): Got feature list request D/LocationManager( 237): Constructor: service = android.location.ilocationmanager$stub$pr...@43d07820 W/GpsLocationProvider( 52): Duplicate add listener for uid 10024 D/GpsLocationProvider( 52): setMinTime 0 D/GpsLocationProvider( 52): startNavigating D/AndroidRuntime( 237): Shutting down VM W/dalvikvm( 237): threadid=3: thread exiting with uncaught exception (group=0x4001b188) E/AndroidRuntime( 237): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 237): java.lang.RuntimeException: Unable to start activity ComponentInfo{xxxxxxxxxxxxx/.projectname}: java.lang.NullPointerException E/AndroidRuntime( 237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2496) E/AndroidRuntime( 237): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2512) E/AndroidRuntime( 237): at android.app.ActivityThread.access $2200(ActivityThread.java:119) E/AndroidRuntime( 237): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1863) E/AndroidRuntime( 237): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 237): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 237): at android.app.ActivityThread.main(ActivityThread.java:4363) E/AndroidRuntime( 237): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 237): at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 237): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) E/AndroidRuntime( 237): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) E/AndroidRuntime( 237): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 237): Caused by: java.lang.NullPointerException E/AndroidRuntime( 237): at android.content.ContextWrapper.getPackageName(ContextWrapper.java:120) E/AndroidRuntime( 237): at android.content.ComponentName.<init>(ComponentName.java:75) E/AndroidRuntime( 237): at android.content.Intent.<init>(Intent.java: 2551) E/AndroidRuntime( 237): at xxxxxxxxxxxxx.sms.SimpleSMS.sendSMS(SimpleSMS.java:11) E/AndroidRuntime( 237): at xxxxxxxxxxxxx.projectname.onCreate(project.java:35) E/AndroidRuntime( 237): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) E/AndroidRuntime( 237): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2459) E/AndroidRuntime( 237): ... 11 more I/Process ( 52): Sending signal. PID: 237 SIG: 3 I/dalvikvm( 237): threadid=7: reacting to signal 3 E/dalvikvm( 237): Unable to open stack trace file '/data/anr/ traces.txt': Permission denied -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.