Click here to Skip to main content
15,891,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a mobile applicationin J2ME for my users and now i want to get the user's mobile number in my jar application.

Any Idea of coding to get the user's mobile number in Jar Applicaiton?

Thanks
Posted

Hi,

Use the function of j2me see below

for mobile no u want to display

String mobile_code="*1#";

objMainMidlet.platformRequest("mobile no:"+mobile_code);

platformRequest is the default method which will place a call and display the mobile no

and for the IMEI no u have to do following on j2me

String IMEI="*#06#";

objMainMidlet.platformRequest("IMEI :"+IMEI);

all the above code place on try catch block for avoiding exception and place it on the key press event such as press key 5 most of on the game
 
Share this answer
 
SQL
I have created a mobile application in J2ME for my users and now i want to get the user's mobile number in my jar application.

Any Idea of coding to get the user's mobile number in Jar Application?



Actually I have clients on my online server and now i have given him a jar application so that my client can get his information without going online.

All is doing well but little problem is to know the actual client on server when we receive the request through jar application.

So the only way to know the requesteee in his mobile number which would be unique for unique customer.

As last Whenever a user submit any request through our jar application we must know the user's number.

so is it possible to know the mobile number on a submit button in my application?

Thanks
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900