On Fri, Aug 22, 2008 at 3:34 AM, Reto <[EMAIL PROTECTED]> wrote: > > 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. What is the error message in logcat? Android supports sending SMS between two emulators... If you start two emulators and replace the sendTo string with the port number of the second emulator( assuming you are starting this app from first emulator) ...you will see SMS received notification pop up in the second emulator ... > > > > --~--~---------~--~----~------------~-------~--~----~ 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] 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 -~----------~----~----~----~------~----~------~--~---

