How to retrieve the phone number in runtime in J2ME?

Hi All,

How can we retrieve the phone number in the runtime?

I am developing one application to upload the game score to the server. So I want to store phone number, name and score.

My problem is how to retrieve the phone number in runtime?

Please help me厖..

Thank U..........

[314 byte] By [joscina] at [2007-10-3 2:50:30]
# 1
Come on, this has been asked so often already... Use the search! Asking it again wont make it any more possible than before.
deepspacea at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

> Hi All,

>

> How can we retrieve the phone number in the runtime?

>

> I am developing one application to upload the game

> score to the server. So I want to store phone number,

> name and score.

Firstly, if you need to store the phone number, get the user to enter it. They're already going to be entering their name, yes? I mean, I'm assuming you don't have a Telepathy API that sucks their name right out of their heads. So why are people so keen to get mobile numbers automatically?

Secondly, nobody is going to enter a phone number for a highscore table anyway. Why? Because the assumption is if you've got their mobile number, you're going to phone them and I can't imagine any game related reason why anyone would want that. Besides, if its on a high score table, presumably others will be able to see it. Who the hell would advertise their mobile number like that?

My advice that neatly provides a solution: Don't use a phone number at all. Its not needed in a highscore table and nobody in their right mind would welcome you sucking it out of their phone anyway, even if it were possible (which it isn't, thankfully......thus preventing abuse of such a system by people such as yourself).

> My problem is how to retrieve the phone number in

> runtime?

You can't. For a damned good reason.

RageMatrix36a at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
> You can't. For a damned good reason.The phone itself doesn't even know it's own number ;) There a good reason for you :P
deepspacea at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
> The phone itself doesn't even know it's own number> ;) There a good reason for you :PThat too :)
RageMatrix36a at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
I have solution to get the phone number automatically at runtime...There is a small workaround needed to achieve that... Do u prefer me to say as algorith or do u need code
Muthukumarana at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
I'd love to see the code for that. Post away.
RageMatrix36a at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7
Send me ur mail ID
Muthukumarana at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8
I am also interested by this code,can you send me thatyassss.ak@caramail.comthanksyasss
yassssa at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 9

Your code, whatever it is won't work on all phones, and is therefore practically useless in most situations...

Letting people reveal their email so you can mail them code, and they can receive some more spam, is not very stylish. This is a public forum. If you have some code to share, just post it!

deepspacea at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 10
> Send me ur mail IDNope. Either post the code or don't.
RageMatrix36a at 2007-7-14 20:39:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...