You can get an reflection call on the internal Api

On May 6, 2010 5:48 AM, "Vinay S" <[email protected]> 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 <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Has...
> >> I think you are trying to useTelephonyManager.getLine1Number();
>
> >> Instead create an object of theTelephonyManagerand then call the

> >> getLine1Number();
>
> We're already doing that --- here's the code:
>
>    TelephonyManagertm = (TelephonyManager)

>         _context.getSystemService(Context.TELEPHONY_SERVICE);
>     return despace(tm.getLine1Numb...
> For more options, visit this group athttp://
groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" ...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to