wood burning stoves*
The moose likes Meaningless Drivel and the fly likes Mobile No Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Mobile No" Watch "Mobile No" New topic
Author

Mobile No

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Hello!

We were just discussing about mobile phone and one question come-up.

Suppose my no is :1234567890

Now I forgot that my mobile no is 1234567890 (Due to any reason) and I am not able to recall it.

How can I find out what no I have?

I don’t want to call anybody. Don't want to ask anybody. Don't want to check in my bills.

I called to Orange/Mumbai help line, they told me to store my own contact information in address but search the same if you forget.

Does anybody has any lateral idea?

Regards,
Chetan


My blood is tested +ve for Java.
Gerald Davis
Ranch Hand

Joined: May 15, 2002
Posts: 872
Text message yourself.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
But how can I send sms to self, if I don't know what is my no??
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

If you call another mobile with caller ID, they can tell you your number without answering. Did you want my number?
Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
Hutch/Orange numbers in Mumbai start with 982? and any number is ten digits.
Following procedure will give you your number but it will take some time.
1)Write a program using java.util.Random to generate ten digits random numbers each starting with 982(or whichevet 3 digits in your area)
2)Store this into some text file.
3)Using java Comm API,modem write a program which will read these numbers and dial one by one and print the numbers which it has called.
4)Don't forget to keep your mobile besides you.
5)Someday,sometime,your mobile will ring,the number printed by your program at that time is yours.
[ July 20, 2005: Message edited by: Arjunkumar Shastry ]

Namma Suvarna Karnataka
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
David O'Meara:
I have already mentioned that I don't want to call anybody.

Arjunkumar Shastry:
Your idea is a good one.
Can you send a code that dial given phone from Java?
[ July 20, 2005: Message edited by: Chetan Parekh ]
Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
That is left as a simple excercise to readers.
(I did similar thing back in Feb 2000 ,don't know whether Comm API still exists and don't have that code now.)
Harishanker Kannan
Greenhorn

Joined: Jul 20, 2005
Posts: 2
I agree with the Arjun Shastry reply, that is a decent start atleast.....To my knowledge you can send SMS to a mobile using javax.comm api available at sun.java.com along with JSMSEngine available at http://jsmsengine.sourceforge.net/. You get a sample code along with the download.

-----------------------------------------

Besides that you can write an application and put in your mobile which would buzz ur number when you choose the option Forgot My Number or record your number (using ur voice or.....) and store the sound resource in your mobile. Or create a wall paper with your number superimposed on the background image and store it in your mobile.....

Regs,
Hari
stara szkapa
Ranch Hand

Joined: Mar 27, 2003
Posts: 321
In my Nokia 3310 my number is stored in the settings. I imagine the phone reads it from the sim card and puts it there.
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Originally posted by Arjunkumar Shastry:

1)Write a program using java.util.Random to generate ten digits random numbers each starting with 982(or whichevet 3 digits in your area)

Why use Random? Why can't you just do it sequentially?



Mani
Quaerendo Invenietis
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Originally posted by Chetan Parekh:
Hello!

We were just discussing about mobile phone and one question come-up.

Suppose my no is :1234567890

Now I forgot that my mobile no is 1234567890 (Due to any reason) and I am not able to recall it.

How can I find out what no I have?

I don’t want to call anybody. Don't want to ask anybody. Don't want to check in my bills.

I called to Orange/Mumbai help line, they told me to store my own contact information in address but search the same if you forget.

Does anybody has any lateral idea?

Regards,
Chetan

Try to help yourself as much as possible and ultimately you would be able to find because "God help those who help themselves" and God knows everything


- Varun
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Originally posted by stara szkapa:
I imagine the phone reads it from the sim card and puts it there.


I remember reading somewhere, that the mobile number is not stored in the SIM. The SIM has a unique identification number called IMSI (International Mobile Subscriber Identity). The network provider has a mapping between the IMSI number and the mobile number (this is the reason why you are able to change the mobile number, without changing the SIM card).

Now, coming back to Chetan's original question:

i) Find the IMSI number of your mobile
ii) From the service provider's mapping table, you can get the mobile number associated with your IMSI.

So, the problem boils down to
a) Finding the IMSI number - That is left as a simple excercise to readers
b) Finding the mapping entry - Since you don't want to ask anyone, you might have to crack the mapping server. How to crack the server, is left as a simple excercise to readers
Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
Originally posted by Mani Ram:

Why use Random? Why can't you just do it sequentially?

I think randomness should give equal probability to every number.
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
There is another way (a better way actually, because you don't need to learn Comm API to do this)

Assuming all the Hutch/Orange numbers in Mumbai start with 982

i) Write down all the numbers from 982-0000000 to 982-9999999
ii) Dial the numbers one by one, manually, from your mobile
iii) If you get any response apart from a engaged tone (like a dial tone or some automated messages (not reachable, switched off) etc), strike the number from the list
iv) Once all the numbers are tried, repeat steps ii & iii (for the un striked numbers)

Repeat this process till you end up with one number. That will be your number.

Note: This procedure requires that you should disable call diverts, for otherwise, you won't get an engaged tone while dialling to your number
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
ii) Dial the numbers one by one, manually, from your mobile


I have already mentioned that I don't want to make any call from my mobile.
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Originally posted by Chetan Parekh:


I have already mentioned that I don't want to make any call from my mobile.


Oops...missed that.
One question: You don't want to make any calls (as stated in your first post) or you don't want to make any calls from your mobile (as stated now)?
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
I don’t want to make any calls from any mobiles - neither from mine nor from others.
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Originally posted by Arjunkumar Shastry:

I think randomness should give equal probability to every number.


But how does that matter? In any case, you want to generate all the possible numbers (9820000000 to 9829999999), right? If that is the case, it is faster and easier to generate them sequentially than to generate them in random.
Ashok Mash
Ranch Hand

Joined: Oct 13, 2000
Posts: 1936
Most phones have an option to show 'own number', try all menus and sub menus, but almost all phones show them.

If not, ask someone who rang you on that number before, and if thats not an option, just dump it and get a new phone and sim - its not worth it!
[ July 20, 2005: Message edited by: Ashok Mash ]

[ flickr ]
Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
Originally posted by Mani Ram:

But how does that matter? In any case, you want to generate all the possible numbers (9820000000 to 9829999999), right? If that is the case, it is faster and easier to generate them sequentially than to generate them in random.

correct.I was thinking about time ,Mr.Parekh will need to wait for his mobile to ring.Will that be less/more if numbers are selected randomly?
Not sure.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

All phones can display their own number, it is always in the settings. It is jsut a matter of finding which setting will display it for you.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Chetan,

You're kidding, right? This is a joke? You're going to call every number in Mumbai from a land line, rather than making one call from your cell? Is this supposed to be a puzzle, or something?

I have an idea: take the cell, put it on a cement floor, hit it very hard with a hammer. Then from now on, write people letters, instead.


[Jess in Action][AskingGoodQuestions]
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Originally posted by Mani Ram:

Why use Random? Why can't you just do it sequentially?



That would be no fun! Using Random is cool.
Oh...and Arjun you forgot to include the [sarcasm] smiley
[ July 20, 2005: Message edited by: Sonny Gill ]

The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Wait until the entire world calls you. Then the number you never see on caller ID is yours.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
I have an idea: take the cell, put it on a cement floor, hit it very hard with a hammer. Then from now on, write people letters, instead.

Sounds great .. But the next question will be, what's the from address.
[ July 21, 2005: Message edited by: Srinivasa Raghavan ]

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60773
    
  65

Stewie: "1-111-111-1111, hello Lois? Blast! 1-111-111-1112, Lois? Blast!"


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Peter van de Riet
Ranch Hand

Joined: Apr 09, 2004
Posts: 112

Originally posted by Chetan Parekh:
I don’t want to call anybody. Don't want to ask anybody. Don't want to check in my bills.


Why would you want to known your number if you don't want to communicate with anybody? This seems stupid to me.


Each number system has exactly 10 different digits.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Originally posted by Peter van de Riet:


Why would you want to known your number if you don't want to communicate with anybody? This seems stupid to me.




Groovy
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Some service provider provide an option where you call *#xxx# to find your own number.
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Originally posted by Pradip Bhat:
Some service provider provide an option where you call *#xxx# to find your own number.


i) He don't want to make any calls
ii) What is that xxx? Is it some 3 digit number?
iii) Can you tell me an example for a provider who provides this service (with the xxx (preferably Airtel or Hutch)
(I know that by pressing *#06#, you can see the IMEI number of your mobile, irrespective of the service provider. But I haven't heard of getting your own number with some key press).
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Can you tell me an example for a provider who provides this service (with the xxx (preferably Airtel or Hutch)


No service provider in India provides such a facility.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

I found some thread by doing a Google search.
http://www.esato.com/archive/t.php/t-95297
madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148

Chuck your phne and get your self a new number and remember this time to writ down that number somewhere


Money for nothing and Java for Free
SCJP, SCWCD
Arjunkumar Shastry
Ranch Hand

Joined: Feb 28, 2005
Posts: 986
Originally posted by madhup narain:

remember this time to writ down that number somewhere

In future he might forget where he has written that number.
Rick Beaver
Ranch Hand

Joined: Dec 14, 2004
Posts: 464
*#06# - should show your IMEI / IMSI number


ph34r my 133t j4v4 h4><0r1ng sk177z
R K Parulekar
Ranch Hand

Joined: May 29, 2005
Posts: 66
Dear Chetan
How do you get these type of ideas? Please do not waste your time in writing java program and calling each no randomly, you can always use your intelligence in writing something really useful.

My sincere advice is, just make a mobile call to the person seating next to you and findout your mobile no.

If not,throw your mobile in dust-bin next to you and do not talk about it.

Howz that !
Ravi Parulekar


"A wish changes nothing. A decision changes everything." - Unknown
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Acme Rocket Science Services offers help.

Buy one of their precision rockets.

Put your cellphone somewhere far from any person or property. Configure the rockets. And fire them up.

The configuration should direct the rocket to the location of the cellphone.

Another way is to drop a piano on it.
 
wood burning stoves
 
subject: Mobile No
 
Similar Threads
mobile number validation in java script
Problem with Conversion
mobile to website transfer
midlet installation
JLabel