Just a note if you choose to use the IMEI/MEID - On some HTC devices,
if the device is put in to the Airplane mode, switched off (while
taking a flight scenario), and then if the device is powered back on,
and then taken out of the Airplane mode. This might seem like a very
normal thing to do.

However, if you check the settings for the IMEI/MEID it comes up as 'N/
A'. :( This applies to retrieving it via the API as well.

PS: To the best of my knowledge, this issue is with HTC devices on
CDMA n/w.

On Feb 15, 8:28 am, gcstang <[email protected]> wrote:
> Using a Hash of all the ID's is most likely the best solution, gather
> all the ID's, append your own signature if you like (optional) and
> hash the long concatenation of all the ID's you can gather, I would
> recommend using SHA.
>
> Most likely not all phones will have all available ID's so by using
> this you can be sure that the ID you're generating is as unique as
> possible.
>
> On Feb 11, 10:54 am, Oceanblue <[email protected]> wrote:> Like a lot of other 
> applications, my application has different levels
> > of features access. Depending on the unique device ID, it switches on
> > certain features (paid/licensing issues). This feature switching on-
> > off is already done in existing native C/C++ code for all kind of
> > mobile devices/PCs etc, so I wouldn't be using Androids new in-app
> > billing (even if it provides this functionality)
>
> > I need a unique (6 byte, hex string) device id. I have looked at the
> > following options:
>
> > 1. ANDOID_ID
>
> > Looks good, but there seem to be some issues with this.
> >         1. This can show up null, unless the device has atleast once logged
> > onto Android market, as per this 
> > thread:http://groups.google.com/group/android-developers/browse_thread/threa...
> >         I've read in other places too, that it might be null - due to this 
> > or
> > other causes.
>
> >         2. Certain devices have a bug where many devices show up the same
> > (supposedly) unique id, as per this 
> > thread:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > 2. MAC address
>
> > Not sure if this is available under the following conditions:
> >         1. Device is not wi-fi enabled
> >         2. Wi-fi is switched off
>
> > 3. IMEI/ MEID
>
> > Application will be potentially running on non-telephone devices like
> > tablets too, so this is not an option.
>
> > I'm really stumped at this point. Any guidance would be much
> > appreciated.

-- 
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

Reply via email to