Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Android 2 Application Development
|
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2010, 02:10 PM
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)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there Actionscript for double-clicks, like onClick for single-clicks? semiotically Flash (all versions) 3 January 5th, 2011 12:18 PM
Multiple Button Clicks Handled By One Sub Apocolypse2005 Visual Basic 2008 Essentials 3 May 19th, 2009 06:58 AM
How to Detect when the user clicks on close button nanajee Javascript 2 March 4th, 2009 10:04 PM
How to count the button clicks bex ASP.NET 2.0 Basics 2 February 13th, 2009 05:34 AM
Refresh Page when User Clicks on Back Button testsubject Visual Studio 2005 1 June 26th, 2006 03:46 AM





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