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]

> 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.
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!