Re: [android-developers] Can't always get unique identifier
On 07/24/2013 02:41 PM, TreKing wrote:
>
> On Wed, Jul 24, 2013 at 2:45 PM, Tobiah <toby@tobiah.org <mailto:toby@tobiah.org>> wrote:
>
> So I was wondering whether there was some other unique identifier
> I could use, or failing that, would like to here suggestions on
> generating an identifier that would (almost?) never be a duplicate.
>
>
> http://lmgtfy.com/?q=android+unique+ID
> First Hit: http://stackoverflow.com/questions/3115918/android-unique-id, which also leads to
> Third Hit: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html
The first two hits outline the technique that I listed in my original
post. It fails on some T-mobile devices. That's why I was
looking for alternatives. The third really just states why the other
methods are not satisfying.
It looks like I'll have to go with creating my own GUID in the rare
case that the ANDROID_ID fails. I'll have to keep it on the filesystem
in order to survive app upgrades.
Given the correct permissions, am I guaranteed to be able to write to
the filesystem on any device?
Thanks,
Tobiah
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices
>
> --
> --
> 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
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home