Has anyone had success sending SMS text messages in the new 0.9 beta?

The following code used to work fine, but now I'm getting a null
pointer exception on calling sendTextMessage:

  SmsManager smsManager = SmsManager.getDefault();
  String myMessage = "Android supports programmatic SMS messaging!";
  String sendTo = "55512345";
  smsManager.sendTextMessage(sendTo, null, myMessage, null, null);

I've added permissions for both SEND_SMS and WRITE_SMS in the manifest.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to