Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Android 2 Application Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 14th, 2010, 03: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)
Reply With Quote
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 07: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 04:46 AM



All times are GMT -4. The time now is 11:22 AM.


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