How to fetch Mobile Number

by Nishant » Sat, 21 Nov 2009 14:58:04 GMT


Sponsored Links
 Hi,

Is it possible to fetch Owner Mobile number.
I have got the operator name but not able to fetch the Mobile Number.

Which intent will be used?

Regards,
Nishant Shah

--



How to fetch Mobile Number

by Nithin » Sat, 21 Nov 2009 18:47:37 GMT


 Hi Nishant,

Just try getLine1Number() in the TelephonyManager. It may help

Thanks
Nithin






--


Sponsored Links


How to fetch Mobile Number

by Nishant » Sat, 21 Nov 2009 23:36:46 GMT


 Hi,

I have tried it in emulator. It should return 5554
But it gives me another number.

Thanks & Regards,
Nishant Shah

--



Other Threads

1. Changing the outgoing call number

Hi,
I have been using a receiver listening to NEW_OUTGOING_CALL and i can
capture the outgoing call broadcast but every time i manipulate the
intent that is broadcast it is ignored.

What is the best way to change the outgoing call number.  ideally i
would like to record the call as going to the original number , dial a
completely different number and if possible change the number shown
the the user to something else to show it is using a different number
but still show the number they are trying to dial as well.

Can anyone help me or point me in the right direction with this?

Chris
--~--~---------~--~----~------------~-------~--~----~

2. Question about the Dialer Gui

Hello everyone,

I am interested in knowing how to create a multi tab gui similar to
the dialer gui. By multi tab i mean the tabs for Dialer, call log,
contacts and favorites.

After searching all over I cannot figure out how to achieve this multi
tab setup. Could someone help me with this?

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. how do you customize ant build.xml using android 1.5 sdk

4. root certificate store (keystore) in android

5. Paid App Support for developers from India

6. hi,how do I get the detail info of Contacts?

7. " Segmentation Fault "