Re: [android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-06 Thread Second Dancer
You can get an reflection call on the internal Api On May 6, 2010 5:48 AM, Vinay S s.vinay@gmail.com wrote: Hi, Are you sure, you are getting the context correctly..? Are you able to get other deatils, like Network type phone type, sim status etc? -Vinay On May 5, 9:32 pm, David Given

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Vinay S
Hi David, I think you are trying to use TelephonyManager.getLine1Number(); Instead create an object of the TelephonyManager and then call the getLine1Number(); -Vinay On May 5, 3:53 pm, David Given d...@cowlark.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/04/10 14:27,

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Mark Ellul
I was informed that its a SIM issue, and that some SIM cards do not store the telephone number in the appropriate way to retrieve the number On May 5, 1:32 pm, Vinay S s.vinay@gmail.com wrote: Hi David, I think you are trying to use TelephonyManager.getLine1Number(); Instead create an

Re: [android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/05/10 12:48, Mark Ellul wrote: I was informed that its a SIM issue, and that some SIM cards do not store the telephone number in the appropriate way to retrieve the number That's what I originally thought, but as I said, Settings-About Phone

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Vinay S
Hi David, Pl. try this code.. TelephonyManager tMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE) ; Log.d(+tMgr.getLine1Number() ) ; -Vinay On May 5, 9:32 pm, David Given d...@cowlark.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/05/10 12:48, Mark Ellul

[android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-05 Thread Vinay S
Hi, Are you sure, you are getting the context correctly..? Are you able to get other deatils, like Network type phone type, sim status etc? -Vinay On May 5, 9:32 pm, David Given d...@cowlark.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/05/10 12:48, Mark Ellul wrote: I