J2ME to access sms storage?

J2ME to access sms storage? SearchSearch
Author Message
Ben
Unregistered guest
Posted on Tuesday, October 19, 2004 - 11:53 am:   

I don't know if I'm in the good website for this question, (sorry if not).

I'd like to know if it is possible to access the sms storage of a mobile phone with J2ME (for example to take a sms, modify it and put it back in the storage). If it's possible, do I need a special API?

Thank you!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3588
Registered: 10-2002
Posted on Wednesday, October 20, 2004 - 06:46 pm:   

Hi Ben,

I am not an expert in this particular area, so there may be options that I am not aware of. But generally speaking, J2ME messaging access is defined by the Wireless Messaging API (WMA) defined by JSR-120 and updated by JSR-205. (I don't think there are many JSR-205 client implementations yet, but I haven't followed this closely.)

You can send and receive SMS messages from a J2ME application via that interface. However, the receiving interface is less than ideal.

Basically, the receiving interface defined in WMA only lets you receive messages that were explicitly addressed to a port that your application is listening on.

A standard SMS text message is not addressed to any particular port number on the phone. So WMA does not provide access to general SMS, only specially formatted ones that were sent to a specific port that the application is listening on.

So, this type of SMS access is more for specialised triggers to the application, or for peer-to-peer exchange of messages between instances of the application on multiple devices.

I'd suggest you check out the JSR-120 and JSR-205 specs. And you might want to do some web searches related to these specs to see if maybe that gives you some pointers to related specs or vendor specific implementations that offer more capability.

Basically, these specs aren't going to meet your requirements, as you can only receive messages that were explicitly sent to your application.

For an example of how to construct an SMS message and send it to your J2ME application on a phone, see the following discussion thread:

http://support.nowsms.com/discus/messages/1/2008.html

It's also worth noting that JSR-205 adds similar capabilities for MMS. But similar to the receiving port concept in SMS, if you want to receive MMS via J2ME WMA, you register an application-id, and you can only receive MMS messages that were explicitly sent to your application ID.

Sending an MMS message to a particular application ID, however, appears to be more challenging as new header options were defined for this (new Content-type parameters). At some point we will likely have to update our MMSCOMP utility to support these additional Content-type parameters.

-bn
yousef
New member
Username: Yeh_eng

Post Number: 1
Registered: 01-2005
Posted on Thursday, January 13, 2005 - 08:00 pm:   

hi,
i need help,i'm using nokia 6600,& i want to upload j2me application to my mobile,
should it be .sis file or it could be .jar file,
i used the .jar but my mobile gives me security alarm and it's manual says that don't install any
application that gives a security alarm.

and if it should be .sis file how to make the .sis file (hint:i'm using nokia suite developper)?

how could i run my application on my mobile?

thanks and i'm sorry for disturbance
thanks for help,time & effort
thanks in advance