Follow up question. How do I validate this number? It could be any 64bit hex.
On Dec 31 2008, 9:49 pm, Mark Murphy <[email protected]> wrote: > There is also android.provider.Settings.System.ANDROID_ID. > > The value is null on the emulator but an apparently-unique 64-bit hex > value on the G1. > > > > roland wrote: > > 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? > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, > 2009http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

