• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Telephone Number format in WMA

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

I have some ambiguity about the number format used in (MessageConnection)Connector.open(destination)

destination will have the telephone number as well with PORT and sms://

the problem is there only with the telephone number...

Consider the following...

0094-77-2123454
where,

00-international access code
94- country code (Sri Lanka)
77 - infact 077 the telco
the rest is the subscriber number

what are the possible ways to represent the above in the destination string..

In fact i wont to have a uniform way when handling this for a local(0772123454) number or international one 009477-2123454

how about the + sign in front...?

can we use the international format when sending to a local number?

will it work if we follow this way 0094772123454?
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no put in the number as follows

+94077xxx
xxx is the subscriber number

no need for 00 (international calling)

e.g :
if you want to send an sms to a number from another country say india
the number would be

+9108037382829

where +91 country code
080 local bangalore code
37382829 some subscriber number

Thanks
Pradeep
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Pradeep..

That was helpful
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know if this addresses what you've asked, but let me add the difference between specifying a port and not is relevant.

If you do not state the port then you are addressing a remote phone's SMS/MMS inbox but MIDlets on the remote side won't have access to it at least through the WMA API.

When a port is part of the address , it may be read by MIDlets using WMA in the remote phone. Note also that some ports may be reserved or blocked.
[ April 01, 2007: Message edited by: Eduardo Marques ]
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marques...

Though it was not what i was referring, your comment will be useful to others in future...

You were correct...

Sending the SMS without specifying the port will reach the default, OEM/Native sms application on the target mobile device...
 
He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic