Did you ever figure this out? It probably has to do with the fact that the Hero 200 runs 1.5 and the only available SmsManager is tailored for GSM, which the Hero 200 is not. android.telephony.gsm.SmsManager
I'm interested in sending sms programmatically on the hero 200, as it seems frighteningly unpredictable to me so far, although I don't have a physical one to test with. Really wish I could see their mms.apk source. On Feb 16, 7:42 am, Jorim Jaggi <[email protected]> wrote: > Hello > > I got a NullPointerException in SmsManager.java while trying to send > ansms. CallStack: > > 02-15 07:55:22.646 E/smsETH (32500): Error while sending message > 02-15 07:55:22.646 E/smsETH (32500): java.lang.NullPointerException > 02-15 07:55:22.646 E/smsETH (32500): at > android.telephony.gsm.SmsManager.sendTextMessage(SmsManager.java:131) > 02-15 07:55:22.646 E/smsETH (32500): at > android.telephony.gsm.SmsManager.sendTextMessage(SmsManager.java:74) > 02-15 07:55:22.646 E/smsETH (32500): at > ch.ethz.smseth.PhoneSender.send(PhoneSender.java:34) > 02-15 07:55:22.646 E/smsETH (32500): at > ch.ethz.smseth.service.SenderService$Sender.run(SenderService.java: > 116) > 02-15 07:55:22.646 E/smsETH (32500): at > java.lang.Thread.run(Thread.java:1058) > > The exception occured on HTCHerorunning Android 1.5 (Cupcake). The > method is invoked as follows: > > SmsManager manager = SmsManager.getDefault(); > manager.sendTextMessage(destination, null, message, pending, null); > > where destination, message and pending is not null. > > Normally, the method just works. So I tried to reproduce the error but > it wasn't possible. I had a look at the source code of SmsManager.java > (http://android.git.kernel.org/?p=platform/frameworks/ > base.git;a=blob;f=telephony/java/android/telephony/gsm/ > SmsManager.java;h=c63b5303309bd1f8adb62ddeb03fbb5187dac089;hb=cupcake- > release) but it seems the line numbering is not the same. > > Any ideas? Another hint is that it happened in a car while driving at > 120 km/h, maybe the connection wasn't very stable. -- 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

