Hello Sir/ Mam
Could any one please suggest me how to get the Phone Number from the same mobile device using C++ Source code.
If anybody know then tell me plz...
Thanks And Regards
Pooja Choudhary
Hello Sir/ Mam
Could any one please suggest me how to get the Phone Number from the same mobile device using C++ Source code.
If anybody know then tell me plz...
Thanks And Regards
Pooja Choudhary
A SIM card (and thus a device) does not need to know its own phone number. While there is storage place for that, most of the time it is empty, or even worse, contains some random stuff.
You may search this forum with 'MSISDN' but unfortunately the results aren't very bright
Do Remember to Search for your query on Google/Forum Wiki& DiBo , it really saves your time & You get your queries answered(in most of the cases) before posting them on Dibo itself. :)
There aren't any really good ways - you can get it using the method described here: How_to_get_my_own_phone_number_using_Symbian_C%2B%2B but as wizard says there is a chance the information will be invalid. It is also possible to request it from contacts, but this requires that a user has set their "own card" information.
How can I help?
Hamish Willee, Nokia Developer Community Manager, ext-hamish.willee@nokia.com
If the above doesn't work, then ask the user for what their number is, and save it.
If you want to verify the number, send an SMS (with content that'll identify it was your app that sent the SMS) to that number, and watch for the SMS coming back to the phone (if it comes, you know the number given by the user is correct). After that, you'd need to watch for SIM card changes, and if detected, verify the number again. Remember also that the user can change the SIM card, but the number stays the same (new SIM card from same operator, multi-SIM from same operator, number transferred to another operator). Note also that the SIM card could stay the same, but the actual number is changed (would be a rare case).