I figured this out. Just generate a random string (using Java UUID)
and save it in Settings. That's enough to distinguish each user :)

On Mar 27, 5:49 pm, Anna PS <[email protected]> wrote:
> Yes, I really wanted to avoid TelephonyManager because it has
> particularly scary-looking permissions.
>
> And indeed I don't need to know any identifying info about the phone
> or the user: I just need an easy way to distinguish one phone from
> another (so that I can ban problem users if necessary).
>
> Any ideas anyone?
>
> On Mar 26, 9:29 pm, Shane Isbell <[email protected]> wrote:
>
>
>
> > I also use TelephonyManager in my app, but I do, on occasion, get an angry
> > e-mail asking why the app needs to make phone calls. Many users just don't
> > understand the phone state permission.
>
> > On Fri, Mar 26, 2010 at 2:20 PM, Ken H <[email protected]> wrote:
> > > Can't say anything about the ANDROID_ID thing. What's wrong with the
> > > TelephonyManager? You can get the device ID, subscriber ID, Sim serial
> > > number, etc. I think the only permission you need is
>
> > > <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
>
> > > in the manifest.
>
> > > Ken
>
> > > On Mar 25, 6:28 am, Anna PS <[email protected]> wrote:
> > > > Odd - I posted this message yesterday and got sent a copy, but it
> > > > doesn't seem to have shown up in the group... Here it is again.
>
> > > > --------
>
> > > > This seems to be a bit of a vexed issue: seehttp://
> > > groups.google.com/group/android-developers/browse_thread/threa...
>
> > > > Like the person who started that thread, I need to get a unique ID for
> > > > a device, without using scary permissions for TelephonyManager. I've
> > > > tried
>
> > > >    id =
> > > > android.provider.Settings.Secure.getString(getContentResolver(),
> > > > android.provider.Settings.Secure.ANDROID_ID);
>
> > > > but that just produces "android_id" on my phone. Anyone know a way
> > > > that works? I'm using a Nexus One and Android 2.1.
>
> > > --
> > > 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]<android-developers%2Bunsubs
> > >  [email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > > To unsubscribe from this group, send email to android-developers+
> > > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > > ME" as the subject.
>
> > --
> > Shane Isbell (Founder of 
> > ZappMarket)http://twitter.com/sisbellhttp://twitter.com/zappstorehttp://zappmark...

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to