ANDROID_ID - when is it set?

by Paul » Wed, 11 Aug 2010 02:01:40 GMT


Sponsored Links
 I've got an app that requires a unique ID for each device.

Either I use the ANDROID_ID or I use an ID I create myself (which is
fine).

I've found that ANDROID_ID isn't set immediately on every device...
(note: I *do* know that ANDROID_ID is not set on the emulator)

When is it set? Is it when the Google account is created on the
device?

Can't find docs on the subject...

--



ANDROID_ID - when is it set?

by Maps.Huge.Info (Maps API Guru) » Wed, 11 Aug 2010 02:31:04 GMT


 I don't know for certain but I believe the Android ID is set when the
OS is loaded. It's independent of the Google account.

There is no Android ID on the emulator.

-John Coryat

--


Sponsored Links


ANDROID_ID - when is it set?

by Wayne Wenthin » Wed, 11 Aug 2010 04:53:38 GMT


 There is an android id on the emulator now.  It was added in the 2.1 update
I think.  I know it broke my code because I relied on NULL.

On Tue, Aug 10, 2010 at 11:30 AM, Maps.Huge.Info (Maps API Guru) <



>



ANDROID_ID - when is it set?

by Paul Johnston » Thu, 12 Aug 2010 06:24:41 GMT


 On a 1.6 device before you setup the google account there is no ANDROID_ID
but there is a device id.




There is an android id on the emulator now.  It was added in the 2.1 update
I think.  I know it broke my code because I relied on NULL.



On Tue, Aug 10, 2010 at 11:30 AM, Maps.Huge.Info (Maps API Guru) <


-- 
Follow us on Twitter  @fuliginsoftware
Join the forums.
 http://www.fuligin.com/forums 



--



Other Threads

1. Notification details Activity never receives Intent used to fire it

I think this may be a bug in Android. I also tried following the
instructions from the docs under section "Launch Modes and Launch
Flags" with no success. That section suggested to declare any Activity
launched from NotificationManager to set the taskAffinitity to "" and
finishOnTaskLaunch to true, so that the Activity does a clean start
everytime it is called.

Even though the Activity is completely restarted now (onStart() is
called), getIntent() always yields the same intent, the one it was
started with for the very first time...



--~--~---------~--~----~------------~-------~--~----~

2. Root access gained through p-terminal and telnet

I would wait until security teams test these utilities first.  I don't
know anything of the security from these apps for G1 yet.  It is open
as hell so there could be security issues.  I would wait a bit before
using it.



> Jon

3. How to explicitly establish connection to the underlying GPRS or WiFi?

4. Notification details Activity never receives Intent used to fire it

5. https://dl-ssl.google.com/android/eclipse/ not found

6. Tetris Game Clone - Ready to download - Any comment is welcomed

7. Does SensorManager work on emulator of SDK1.0?