Guys,
While working on a AutoReply app i found a bug which is bit strange.
I have a receiver for SMS RECEIVED. It start a service to send message using
below api
smsManager.sendTextMessage(number, null,
message, PendingIntent.getBroadcast(
this, 0, new Intent(ACTION_SMS_SENT), 0), null);
I handle following cases in ACTION SMS SENT receiver:
case Activity.RESULT_OK:
message = "Message sent";
break;
case SmsManager.RESULT_ERROR_GENERIC_FAILURE:
break;
case SmsManager.RESULT_ERROR_NO_SERVICE:
break;
case SmsManager.RESULT_ERROR_NULL_PDU:
break;
case SmsManager.RESULT_ERROR_RADIO_OFF:
break;
I always see above error in red, dont know whats the problem as number is
correct. I do not know how to debug further.
If i call the same api to send message from activity it works
and recipient is able to receive my message.
This is getting very strange.
Please let me know your thoughts.
Thanks & Reg,
Varun
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en