Unique Device ID? or Detect gmail address?

314 views
Skip to first unread message

Glen

unread,
Aug 24, 2012, 2:25:34 AM8/24/12
to tas...@googlegroups.com
Just wondering, is there a variable where it would generate a device specific ID? or Is there a way to detect the registered gmail address?
I've tried %DEVID but clearly I dont understand what's its for. Since I have 2 phones and they both have the same %DEVID


Jakub

unread,
Aug 24, 2012, 5:21:16 AM8/24/12
to tas...@googlegroups.com
Hmm... I dont now in what purpose you whant this but... specyfic ID for phone might be:
SIM Serial Number %SIMNUM
Phone Number %PNUM 

Keith

unread,
Aug 24, 2012, 9:55:44 PM8/24/12
to tas...@googlegroups.com
This will probably accomplish whatever Glen wants to do, but recall that SIMs can move to other devices, and the phone number goes with them, so this really doesn't identify the DEVICE.  This could either be a plus or a minus for Glen....  Having criticized your solution, this is the part where I offer a better one, but hey, I got nothing, man.  :)

Keith

Jakub

unread,
Aug 25, 2012, 3:37:53 AM8/25/12
to tas...@googlegroups.com
I think i found something



Settings.Secure#ANDROID_ID returns the Android ID as an unique 64-bit hex string.

import android.provider.Settings.Secure;

private String android_id = Secure.getString(getContext().getContentResolver(),
Secure.ANDROID_ID);

Amer

unread,
Aug 26, 2012, 8:39:23 PM8/26/12
to tas...@googlegroups.com

So if I need this function in the kid app it also need to install secure setting right.?

--
√ HTC Evo 3D
√ Android ICS 4.0.3
√ Sense 3.6 Cool ICS ROM v12
√ 4EXT Recovery Touch v1.0.0.5 RC5

Jakub

unread,
Aug 27, 2012, 2:36:43 AM8/27/12
to tas...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages