Transfer SMS from a Java phone over GPRS (i.e. run an SMS gateway)?

1k Views Asked by At

Is it possible to transfer SMS's from a Java based phone (either generic Java ME or Nokia Series 40) over GPRS - i.e. effectively to run an SMS gateway, without a PC?

I am aware that:

  • this is not possible through just MIDP, since MIDlets cannot access the SMS inbox directly.

  • Gammu is a possibility, and in fact I currently use it. However, this permits connection to a computer via Bluetooth or data cable, but not via an internet or GPRS interface (naturally, since AT commands presumably cannot be sent that way). Hence, to get to a server on the Internet, you need a PC.

  • SMS gateways exist for Android and Blackberry but not for these "featurephones."

From my research it appears that this task is not possible. However, I just want to check if I'm missing something.

1

There are 1 best solutions below

4
pkk On

It's been a while I programmed midp devices, but have you seen Nokia SMS Api? http://developer.nokia.com/Develop/Java/Documentation/Java_API_specifications.xhtml#sms

I think it should be possible to read SMS in midlet, but permissions apply, and depending on the phone and/or midlet signature the resulting application would ask each time the sms is to be read (as far as I remember). Therefore you wouldn't get automatic relay as Gammu.

Edit: Have you seen this: Receive text message using J2ME