View Single Post
  #1 (permalink)  
Old September 14th, 2010, 02:10 PM
kramerx kramerx is offline
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CH13 BluetoothTexting force closes on button clicks

I tried initializing the ArrayList foundDevices as suggested in a previous thread, but I'm still getting the dreaded force close when I try to click either of the buttons when running the code on my Nexus One. Here it is in logcat. Any suggestions?


09-14 17:56:34.731: ERROR/AndroidRuntime(339): Uncaught handler: thread main exiting due to uncaught exception
09-14 17:56:34.757: ERROR/AndroidRuntime(339): java.lang.NullPointerException
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at com.neumitra.bluetoothtexting.BluetoothTexting$5.o nClick(BluetoothTexting.java:158)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.view.View.performClick(View.java:2364)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.view.View.onTouchEvent(View.java:4179)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.widget.TextView.onTouchEvent(TextView.java :6540)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.view.View.dispatchTouchEvent(View.java:370 9)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:884)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:884)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:884)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:884)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at com.android.internal.policy.impl.PhoneWindow$Decor View.superDispatchTouchEvent(PhoneWindow.java:1659 )
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at com.android.internal.policy.impl.PhoneWindow.super DispatchTouchEvent(PhoneWindow.java:1107)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.app.Activity.dispatchTouchEvent(Activity.j ava:2061)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at com.android.internal.policy.impl.PhoneWindow$Decor View.dispatchTouchEvent(PhoneWindow.java:1643)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.view.ViewRoot.handleMessage(ViewRoot.java: 1691)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.os.Handler.dispatchMessage(Handler.java:99 )
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.os.Looper.loop(Looper.java:123)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at android.app.ActivityThread.main(ActivityThread.jav a:4363)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invokeNative(Native Method)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invoke(Method.java:521)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:860)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:618)
09-14 17:56:34.757: ERROR/AndroidRuntime(339): at dalvik.system.NativeStart.main(Native Method)
Reply With Quote