Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I retrieve the phone number from my midlet?

midlet phone
0
Posted

How do I retrieve the phone number from my midlet?

0

You would have to use the JSR 253 – Mobile Telephony API which allows you to have a fairly good set of call-related funcionality, so it’s possible that this API will also provide a way to let you know what’s your phones’s number. No Nokia devices currently support JSR 253. There are some possible workarounds: • When the user first downloads the application, have a server-side app such as a Java servlet or PHP script that retrieves the phone number from the HTTP header, and set it as a property in a dynamically-generated JAD file. This way, when your midlet is running, it can check the phone number using getAppProperty() method from MIDlet class. This approach will only work if the device is accessing the server-side application using a WAP access point, however. This happens because in this type of access point, an HTTP header containing the MSISDN (phone number) is added to the HTTP request that will be forwarded to your application, so you can retrieve it. • If the target handset sup

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123