• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to change SMSC number of a phone

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?





 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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



 
vijay shanker
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic