Re: [android-developers] Can't always get unique identifier

2013-07-25 Thread TreKing
On Thu, Jul 25, 2013 at 2:56 PM, Tobiah wrote: > Given the correct permissions, am I guaranteed to be able to write to the > filesystem on any device? > There are no guarantees about anything once your app hits the wild. It's also not clear what you mean by "the filesystem" - you can access you

Re: [android-developers] Can't always get unique identifier

2013-07-25 Thread Tobiah
On 07/24/2013 02:41 PM, TreKing wrote: On Wed, Jul 24, 2013 at 2:45 PM, Tobiah mailto:t...@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 (almos

Re: [android-developers] Can't always get unique identifier

2013-07-25 Thread Dalvinder Singh
You can generate unique id by following this java code. http://www.javapractices.com/topic/TopicAction.do?Id=56 On Thu, Jul 25, 2013 at 3:11 AM, TreKing wrote: > > On Wed, Jul 24, 2013 at 2:45 PM, Tobiah wrote: > >> So I was wondering whether there was some other unique identifier >> I could u

Re: [android-developers] Can't always get unique identifier

2013-07-24 Thread TreKing
On Wed, Jul 24, 2013 at 2:45 PM, Tobiah 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 Firs

Re: [android-developers] Can't always get unique identifier

2013-07-24 Thread Michael Banzon
You could have the server generate a unique ID that you send to the client for storage upon request. On Wed, Jul 24, 2013 at 9:45 PM, Tobiah wrote: > I needed to send an identifier to our server to identify > users as they use my application. I first used the phone > number, but found that table

[android-developers] Can't always get unique identifier

2013-07-24 Thread Tobiah
I needed to send an identifier to our server to identify users as they use my application. I first used the phone number, but found that tablets without service had none. So failing getting a phone number, I did this: android_id = Secure.getString(this.getContentResolver(), Secure.ANDROID_ID);