Just in case anyone else is looking to get the IMEI:

I was being a klutz and had overlooked TelephonyManager not realizing
that getDeviceId() returns the IMEI. Also
TelephonyManager.getDefault() seems to provide a context free way of
accessing the service.

Tom.

On Aug 20, 11:12 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> Use Context.getSystemService(TELEPHONY_SERVICE) to get access to the
> TelephonyManager.
>
> On Wed, Aug 20, 2008 at 3:05 PM, tomgibara <[EMAIL PROTECTED]> wrote:
>
> > The changes overview for 0.9 states that:
>
> > "Several GSM subscriber and device-related system properties are moved
> > to new permission-checked API. You can now access these phone/
> > subscriber properties through the new PhoneSubInfoManager, using the
> > IPhoneSubInfo interface."
>
> > PhoneSubInfoManager doesn't exist and the PhoneSubInfo and
> > IPhoneSubInfo classes reside in the internal telephony package. So how
> > do we access the IMEI?
>
> --
> Romain Guywww.curious-creature.org
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to