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)
-   -   Chapter 12 Emergency Responder 2 - crash! (http://p2p.wrox.com/showthread.php?t=82026)

makeit_quick December 24th, 2010 03:12 PM

Chapter 12 Emergency Responder 2 - crash!
 
after sending "are you ok?" SMS to the application it crashes...
debugging this (Eclipse to nexusone) leads to crash point:

EmergencyResponder.java: 117
// Send the message
sms.sendTextMessage(_to, null, _response, sentIntent, null);

there is an InvocationTargetException thrown but I don't know how to fix the code.

help appreciated
thanks

makeit_quick December 24th, 2010 03:35 PM

it seems like that the "Respond With" dialog needs to contain something.
the root of the crash seems to come from the fact that the response text is empty...


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

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