aspose file tools*
The moose likes Java Micro Edition and the fly likes how to change SMSC number of a phone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how to change SMSC number of a phone" Watch "how to change SMSC number of a phone" New topic
Author

how to change SMSC number of a phone

vijay shanker
Ranch Hand

Joined: Oct 26, 2007
Posts: 88
Hello friends,

I am looking for some help over a question. please enlighten me. Here goes my question

Can i change the SMSC number of a mobile phone to send SMS?

Provided; this mobile phone is using a application to send SMS developed by myself. I am using J2ME api to send SMSes.

Does J2Me has some control over this information?





Himanshu Rawat
Ranch Hand

Joined: Nov 27, 2005
Posts: 141
i think WMA 2.0 defines system property wireless.messaging.sms.smsc for SMSC which you can retrieve

String _smsc_Number= System.getProperty("wireless.messaging.sms.smsc");

Same way you can set System.setProperty("wireless.messaging.sms.smsc", "+232131232131");



i haven't tried it but i think it should work.

give it a try

Cheers
Rawat




rawat
SCJP 1.4
vijay shanker
Ranch Hand

Joined: Oct 26, 2007
Posts: 88
Himanshu Rawat wrote:

Same way you can set System.setProperty("wireless.messaging.sms.smsc", "+232131232131");



Hi Himanshu

with your response; my first response was so easy it was.

But after trying it in my project. what i find out is: there is no any method named setProperty("", "");

please look out and verify this.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to change SMSC number of a phone