Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-15 Thread Nesim TUNÇ
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 +

[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread lbendlin
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();

[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread dweebo
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread 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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Kostya Vasilyev
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

[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Maps.Huge.Info (Maps API Guru)
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread David Williams
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread David Williams
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Greg Donald
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Marcin Orlowski
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Marcin Orlowski
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread David Williams
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Kostya Vasilyev
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

[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Brill Pappin
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Miguel Morales
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Brill Pappin
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

Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread David Williams
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

[android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread lbendlin
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