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. Issues debugging multi-threaded Android app?

I was debugging just fine until I added a thread to do some background
work. After I did that, the de{*filter*} could no longer connect to my
Samsung Galaxy.

I got the problem fixed without the de{*filter*} but now I have to chose
between deactivating the threading in my app or being able to use the
de{*filter*}.

Has anyone else run into this and if so, is there a work around?

Thanks.

-- 

2. Implement a rich text editor

Hi there,

I am wondering if there are any good options to implement a rich text
editor in Android. Please note I am talking about a rich text editor
that can be used in an Android application, not the one embedded in a
web page using HTML and Javascript.

My requirements are:

* Basic formatting (color, fonts, highlight, bold, italic, underline,
etc.)
* Hyperlinks
* Inline images
* Bullet lists and numbered lists
* Inline table (only the contents inside a cell is editable, not the
table structure)

As you can see, this is pretty much something quite similar to a
typical RichEdit control on Windows.

Here are some efforts (investigation & prototyping) I have made so
far:

[ Using WebView ]
I have tried using a WebView control to load an HTML fragment with
one . The content becomes editable and as it is HTML, I suppose it can
meet most of my requirements. But it has several issues:


* (deadly) No text caret. The user will have no idea where his/her
typed characters will be inserted.
* The on-screen soft keyboard is not visible by default. There is a
trick that the user has to long-press the Menu button to bring up the
keyboard. But I think this is a very bad user experience. Besides, the
screen layout is not properly rearranged and the text inserting point
sometimes will be covered by the keyboard.

[ Using EditText ]
I have tried using the EditText control. It seems to support some
level of rich text editing (color, fonts, bold, italic, underline,
inline images, bullet lists). But I still cannot figure out how I can
implement the following requirements:

* Control the appereance of the bullet symbol (dot, circle, dash,
arrow, star, etc.)
* Numbered list (1., 2., 3., etc.)
* Table

BTW, I have seen there are several *Span classes out there but I am
not sure if they can be any help... And the http://developer.android.com
does not provide much useful information about them.

So, how on earth can I implement a rich text editor on Android? Can I
extends the EditText and add my new functionalities? Or should I do
something from scratch - extends the View and implement everything by
myself? For later option (extending View), I actually even don't know
how to show a text caret and blink it, not mentionging moving the
caret with user typing.

I believe there must be some ways of doing this because I did see apps
with rich text editting including all features I need (especially
tables and numbered lists).

I am desperate now... Any hints?

Thanks!

-Tony

-- 

3. how to make the flash application on android non exitable

4. Types of multitouch on deployed devices

5. OT: Is this News-Group only for developer? (was: Android Update for LG GT540 from 1.6 to 2.1 in Germany - Status?)

6. USB driver won't install

7. Why does my polygon animation flicker?