p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Android 2 Application Development (http://p2p.wrox.com/forumdisplay.php?f=547)
-   -   CH13 BluetoothTexting force closes on button clicks (http://p2p.wrox.com/showthread.php?t=80922)

kramerx September 14th, 2010 02:10 PM

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)


All times are GMT -4. The time now is 07:46 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.