Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: J2ME
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 20-Feb-13 19:42pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 200
1 PIEBALDconsult 150
2 BillWoodruff 148
3 Jochen Arndt 135
4 DamithSL 130
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100