Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
Thanks to all you ... I did with this way ... I tried in onCreate event in activity. This is works for me ... Thanks ... Sorry after i found this way i forgot to reply this post. DeviceId = 35 + //we make this look like a valid IMEI Build.BOARD.length()%10+ Build.BRAND.length()%10 + Build.CPU_ABI.length()%10 + Build.DEVICE.length()%10 + Build.DISPLAY.length()%10 + Build.HOST.length()%10 + Build.ID.length()%10 + Build.MANUFACTURER.length()%10 + Build.MODEL.length()%10 + Build.PRODUCT.length()%10 + Build.TAGS.length()%10 + Build.TYPE.length()%10 + Build.USER.length()%10 ; //13 digits Resource: http://www.pocketmagic.net/?p=1662 http://www.pocketmagic.net/?p=1662 On Mon, Mar 14, 2011 at 11:17 PM, lbendlin l...@bendlin.us wrote: http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id On Mar 14, 3:25 pm, David Williams dwilli...@dtw-consulting.com wrote: I will look into that, and this might make more sense to me. David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 3:23 PM, Brill Pappin wrote: why not user AccountManager.getAccounts(com.google). You can digest that value and use it as a unique id. It will be as unique as the user is and will work across phones/devices. Only thing thats needed is for the user to have a google account, which just about everyone using an android phone does. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nesim TUNÇ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
What error do you get? On Mar 14, 11:13 am, Nesim TUNÇ nesimt...@gmail.com wrote: I tried bilion different ways but still not avaliable to get its device id ... TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); DeviceId = tm.getDeviceId(); read_phone_state permissons set in manifest file ... I'm gonna release the app but i don't have the client deviceid Please help me, it's so urgent ... Thanks in advance -- Nesim TUNÇ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
Not sure what you need it for but I use the Android device id provided by String androidId = Secure.getString(context.getContentResolver(),Secure.ANDROID_ID); On Mar 14, 11:13 am, Nesim TUNÇ nesimt...@gmail.com wrote: I tried bilion different ways but still not avaliable to get its device id ... TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); DeviceId = tm.getDeviceId(); read_phone_state permissons set in manifest file ... I'm gonna release the app but i don't have the client deviceid Please help me, it's so urgent ... Thanks in advance -- Nesim TUNÇ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
This works for me, at least on the emulator and my phone: TelephonyManager mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String imei = mTelephonyMgr.getDeviceId(); This is in my manifest file, before the application tag: uses-permission android:name=android.permission.READ_PHONE_STATE/uses-permission David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 1:11 PM, dweebo wrote: Not sure what you need it for but I use the Android device id provided by String androidId = Secure.getString(context.getContentResolver(),Secure.ANDROID_ID); On Mar 14, 11:13 am, Nesim TUNĒnesimt...@gmail.com wrote: I tried bilion different ways but still not avaliable to get its device id ... TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); DeviceId = tm.getDeviceId(); read_phone_state permissons set in manifest file ... I'm gonna release the app but i don't have the client deviceid Please help me, it's so urgent ... Thanks in advance -- Nesim TUNĒ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=eninline: GClogo.png
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
The telephony device ID is good as a fallback - not all devices are phones (e.g. the Xoom). The primary device ID is the Secure.ANDROID_ID, as posted by dweebo a couple messages back. -- Kostya 14.03.2011 20:29, David Williams ?: This works for me, at least on the emulator and my phone: TelephonyManager mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String imei = mTelephonyMgr.getDeviceId(); This is in my manifest file, before the application tag: uses-permission android:name=android.permission.READ_PHONE_STATE/uses-permission David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 1:11 PM, dweebo wrote: Not sure what you need it for but I use the Android device id provided by String androidId = Secure.getString(context.getContentResolver(),Secure.ANDROID_ID); On Mar 14, 11:13 am, Nesim TUNĒnesimt...@gmail.com wrote: I tried bilion different ways but still not avaliable to get its device id ... TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); DeviceId = tm.getDeviceId(); read_phone_state permissons set in manifest file ... I'm gonna release the app but i don't have the client deviceid Please help me, it's so urgent ... Thanks in advance -- Nesim TUNĒ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enimage/png
[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
Just keep in mind that Secure.ANDROID_ID isn't reliably unique. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
Thanks, I will update my code to ensure that it get's secure.android_id. Kostya, you have been very, very helpful so far and it is much appreciated :) David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 1:47 PM, Kostya Vasilyev wrote: The telephony device ID is good as a fallback - not all devices are phones (e.g. the Xoom). The primary device ID is the Secure.ANDROID_ID, as posted by dweebo a couple messages back. -- Kostya 14.03.2011 20:29, David Williams ?: This works for me, at least on the emulator and my phone: TelephonyManager mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String imei = mTelephonyMgr.getDeviceId(); This is in my manifest file, before the application tag: uses-permission android:name=android.permission.READ_PHONE_STATE/uses-permission David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 1:11 PM, dweebo wrote: Not sure what you need it for but I use the Android device id provided by String androidId = Secure.getString(context.getContentResolver(),Secure.ANDROID_ID); On Mar 14, 11:13 am, Nesim TUNÇnesimt...@gmail.com wrote: I tried bilion different ways but still not avaliable to get its device id ... TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); DeviceId = tm.getDeviceId(); read_phone_state permissons set in manifest file ... I'm gonna release the app but i don't have the client deviceid Please help me, it's so urgent ... Thanks in advance -- Nesim TUNÇ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=eninline: GClogo.pngimage/png
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
Really? That's a bummer. Is there any other ID that is unique, or combination of ID's then? David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 1:54 PM, Maps.Huge.Info (Maps API Guru) wrote: Just keep in mind that Secure.ANDROID_ID isn't reliably unique. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=eninline: GClogo.png
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
On Mon, Mar 14, 2011 at 12:11 PM, dweebo dwe...@gmail.com wrote: Not sure what you need it for but I use the Android device id provided by String androidId = Secure.getString(context.getContentResolver(),Secure.ANDROID_ID); You almost certainly have to back this up with a plan B as there are phones out there with the same ANDROID_ID as well as phones with no ANDROID_ID at all. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
On 14 March 2011 18:54, Maps.Huge.Info (Maps API Guru) cor...@gmail.comwrote: Just keep in mind that Secure.ANDROID_ID isn't reliably unique. It's not reliable at all. On some devices all you get is null (i.e. Milestone). On other it's not unique. Regards, Marcin Orlowski Tray Agenda for Android http://bit.ly/trayagenda -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
On 14 March 2011 18:58, David Williams dwilli...@dtw-consulting.com wrote: Really? That's a bummer. Is there any other ID that is unique, or combination of ID's then? Telephony based Id is a good start, but these require phone to exist and extra permission. Others try to use MAC of WiFi but some devices are reported to not expose such if wifi is off. Serial number of SD card looks tempting, but it seems no API exposes it. In general grab as many info as you can to reduce chance all you get in hand is bunch of nulls, then, if you do not need the raw values, just hash it (md5/sha1) to get something you may consider unique Id of device. Regards, Marcin Orlowski Tray Agenda for Android http://bit.ly/trayagenda -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
Hhmmm, Perhaps I need to rethink my trial registration under Android then, if I cannot obtain a unqiue ID. Not sure what else to use though that can't/won't be abused. Basically, I want to be able to register who has the trial (by some unique id) and then expire the trial when the period is over. On the Pre I used the device ID. Is there a way to obtain the phone's primary email address? David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 2:07 PM, Marcin Orlowski wrote: On 14 March 2011 18:58, David Williams dwilli...@dtw-consulting.com mailto:dwilli...@dtw-consulting.com wrote: Really? That's a bummer. Is there any other ID that is unique, or combination of ID's then? Telephony based Id is a good start, but these require phone to exist and extra permission. Others try to use MAC of WiFi but some devices are reported to not expose such if wifi is off. Serial number of SD card looks tempting, but it seems no API exposes it. In general grab as many info as you can to reduce chance all you get in hand is bunch of nulls, then, if you do not need the raw values, just hash it (md5/sha1) to get something you may consider unique Id of device. Regards, Marcin Orlowski Tray Agenda for Android http://bit.ly/trayagenda -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=eninline: GClogo.png
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
14.03.2011 21:01, Marcin Orlowski ?: On 14 March 2011 18:54, Maps.Huge.Info http://Maps.Huge.Info (Maps API Guru) cor...@gmail.com mailto:cor...@gmail.com wrote: Just keep in mind that Secure.ANDROID_ID isn't reliably unique. It's not reliable at all. On some devices all you get is null (i.e. Milestone). On other it's not unique. I definitely get a non-null ANDROID_ID value on my Milestone. Do you have any Google accounts set up on yours? Too true about non-unique IDs, including the Droid 2 and others. So one really needs three plans : Plan A for ANDROID_ID, Plan B for the telephony ID, and Plan C for when to use which one :) -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
Try this... works every time http://tinyurl.com/6danm5t -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
I've read somewhere (some stackoverflow post) that using the network mac address is actually more unique and reliable than the system id. On Mon, Mar 14, 2011 at 12:13 PM, Brill Pappin br...@pappin.ca wrote: Try this... works every time http://tinyurl.com/6danm5t -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
why not user AccountManager.getAccounts(com.google). You can digest that value and use it as a unique id. It will be as unique as the user is and will work across phones/devices. Only thing thats needed is for the user to have a google account, which just about everyone using an android phone does. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
I will look into that, and this might make more sense to me. David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 3:23 PM, Brill Pappin wrote: why not user AccountManager.getAccounts(com.google). You can digest that value and use it as a unique id. It will be as unique as the user is and will work across phones/devices. Only thing thats needed is for the user to have a google account, which just about everyone using an android phone does. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=eninline: GClogo.png
[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)
http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id On Mar 14, 3:25 pm, David Williams dwilli...@dtw-consulting.com wrote: I will look into that, and this might make more sense to me. David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi: http://www.dtw-consulting.com/GolfCaddie Golf Caddie http://www.dtw-consulting.com/GolfCaddie | Golf Caddie Forum http://www.dtw-consulting.com/GolfCaddie/forum | Golf Caddie FAQ http://www.dtw-consulting.com/GolfCaddie/faq.html by DTW-Consulting, Inc. On 3/14/2011 3:23 PM, Brill Pappin wrote: why not user AccountManager.getAccounts(com.google). You can digest that value and use it as a unique id. It will be as unique as the user is and will work across phones/devices. Only thing thats needed is for the user to have a google account, which just about everyone using an android phone does. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en