No. The phone may not know its number, particularly on GSM. For example, you
are probably thinking of getLine1Number(), but that may return null or an
invalid phone number, based on what the SIM contains.

You can peek at AccountManager and see if there is something in there that
will give you this information.

On Thu, Aug 11, 2011 at 4:48 AM, GopalaKrishnan D <[email protected]>wrote:

> its possible.... through read_phone_state
>
>
> --
> ~* Regards*
> *GopalaKrishnan D*
>
>  --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
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