Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrieving phone number from midlet

 
lexander Bosco
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi people,

is it possible to retrieve the users phone number from a midlet application?
if (yes)
{
How?
}
else
{
what do you suggest?
}
 
William Frantz
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which handset/carrier are you asking about?

In general, there is no works-on-everything solution for extracting the phone number from a handset. Some phones include it in the HTTP headers. Some will support proprietary extensions to the APIs to allow it. Sprint phones include a proprietary, encrypted device ID in the HTTP headers which only Sprint can decode into the subscriber's phone number.

The best suggestion is to store the number in the JAD or RMS. If you provision the MIDlet over the air, prompt the user for their phone number on your website. Embed the number into the JAD and send an SMS to the phone with the download link. Once your program starts, extract the number from the JAD properties.

William Frantz
http://sprintdevelopers.com
 
lexander Bosco
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks man
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic