What about the imei? You can get it by ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(), and the emulator return 000000000000000.
Don't forget add <uses-permission android:name="android.permission.READ_PHONE_STATE" /> in your AndroidManigest.xml. On 31 déc, 08:24, jsm <[email protected]> wrote: > I have an application where I need to check whether the user is using > the actual device not a emulator or others. I have seen the API where > there is device id method from phone service. > I need a generic way to check if the user is on the real device. > For example if he has downloaded the app from the market, i need to > know the device id of the user, this is strictly for licensing and > restricting the use of app. > > Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

