Thank you very much Vladimir. I was guessing it had something to do with passing it on as a Context but was hampered by my inexperience with Java and Android.
Robert On Apr 5, 1:06 pm, Vladimir <[email protected]> wrote: > Do you really need that SimpleSMS class to be an Activity? Because all > you do is create an instance of that class. You don't actually launch > that Activity, but you try to pass it on as a Context in a new intent. > I'm pretty sure this is the source of NullPointerException. > > Also, as you've probably found out by now, that confusing "println > needs a message" was caused by ex.getMessage(). Message can be null, > use ex.printStackTrace() to track down the source of error. > > On Apr 5, 7:31 pm, RMD <[email protected]> wrote: > > > I've narrowed it down to this line in the sendSMS method > > > PendingIntent pi = PendingIntent.getActivity(this, 0,new > > Intent(this, SimpleSMS.class), 0); -- 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 To unsubscribe, reply using "remove me" as the subject.

