p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional Android 2 Application Development (http://p2p.wrox.com/book-professional-android-2-application-development-547/)
-   -   Ch. 13 bluetooth texting - how to use (http://p2p.wrox.com/book-professional-android-2-application-development/83396-ch-13-bluetooth-texting-how-use.html)

JohnSantaFe April 23rd, 2011 10:56 PM

Ch. 13 bluetooth texting - how to use
 
I installed the bluetooth texting application on two devices. They can both listen and search just fine. When I click on a found device the interface jumps to text entry as expected, however that is where I'm stuck. There is no send button. Looking at the code I don't see how the text actually gets sent.
Could someone describe how this application is supposed to work?
Thanks.

JohnSantaFe April 24th, 2011 04:40 PM

I found in the code that it was waiting for the KEYCODE_DPAD_CENTER. I changed that to KEYCODE_ENTER to get it to send the message.

The next problem is the receiver does not actually display the message in the text view. I'm sure textView.setText(message); is getting called but the text does not show up.

Has anybody actually gotten this code to work? I assume the author did some testing before publishing it?

ashwinitupe2 May 2nd, 2017 01:21 AM

Bluetooth Texting Application is get crashes.
 
When I am Running the application it get crashes and showing the error that list view get null reference. Plaese help me with the solution ASAP


All times are GMT -4. The time now is 11:33 PM.

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