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Ç<[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group athttp://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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group athttp://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 [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
<<inline: GClogo.png>>
<<image/png>>

