Hi,
Here's the thread you're looking for ...
http://android-developers.blogspot.com/2011/03/identifying-app-installations.html
Regards
On Jul 14, 12:58 pm, Shereef Marzouk shee...@gmail.com wrote:
the whole idea behind using the Android_ID is not having to set a permission
read phone state
the whole idea behind using the Android_ID is not having to set a permission
read phone state
it defeats the purpose Rampanda
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Yeah but what about devices without WIFI ?
On 3 fév, 16:26, Gregg Reno gregg.r...@gmail.com wrote:
How about using the WIFI MAC address in cases where the ANDROID_ID is
null? I believe it should be unique for each device:
WifiManager manager = (WifiManager) getSystemService
How about using the WIFI MAC address in cases where the ANDROID_ID is
null? I believe it should be unique for each device:
WifiManager manager = (WifiManager) getSystemService
(Context.WIFI_SERVICE);
WifiInfo wifiInfo = manager.getConnectionInfo();
String MACAddress =
Found the cause:
The android_id is not available unless you have logged onto the
android market at least once from a device.
Once you've done that, the ID is populated and returned by the device.
Using the android_id does raise a couple of privacy questions though,
but that's food for another
Hi,
Is there a way to populate the id without having to get into the
market? This sounds a very strange policy. Seems that google only
thinks that the consumer will use Android, and they forgot about the
companies that will just install their applications and nothing else
(example: Sales Force
That's interesting. Is ANDROID_ID only null on the emulator because
the market application is not available on the emulator?
On Feb 2, 9:42 am, guich guiha...@gmail.com wrote:
Hi,
Is there a way to populate the id without having to get into the
market? This sounds a very strange policy.
Hi,
having the exact same problem on a Droid 2.0.1 and HTC Hero 1.5. :
String androidID = Secure.getString(this.getContextResolver(),
android.provider.Settings.Secure.ANDROID_ID);
Toast.makeText(this, ANDROID_ID: + androidID,
Toast.LENGTH_LONG).show();
consistently returns null
Hi fisobral,
Having the exact same problem using a Motorola Droid running 2.0.1 and
HTC Hero on 1.5.
Querying the Android ID consistently returns a null value, using
similar code to yours in the onCreate of the launcher Activity:
String androidID = Secure.getString(this.getContentResolver(),
This is what I'm doing, seems to work on all the devices we've seen
Classandroid.os.Build buildClass =
android.os.Build.class;
android.os.Build build = new android.os.Build ();
String board = (String) buildClass.getField(BOARD).get
(build);
String
On Jan 29, 9:21 am, flsobral flsob...@gmail.com wrote:
I found two apps on the Market that show the ANDROID_ID, and both show
the same value.
By the 'same value' do you mean they show an ANDROID_ID? or are they
showing null? And if you code doesn't work on any devices you have, I
suspect it
Hi Mike,
that looks like it may do the trick, when combined with IMEI that
should deliver a unique ID, thanks.
Still eager to find the cause of this, it may be causing more trouble
somewhere else.
...
(PRODUCT).get(build);
String manufacturer = (String) buildClass.getField
Small copy paste enthousiasm error: code snippet should read:
String androidID = Secure.getString(this.getContentResolver(),
android.provider.Settings.Secure.ANDROID_ID);
Toast.makeText(this, ANDROID_ID: + androidID,
Toast.LENGTH_LONG).show();
not context resolver,
Like I said, although it shouldn't make any difference if I'm using
the fully qualified path or not, I did try your suggestion and it
still gave me null.
I'm not questioning your program, I'm asking for help with my
particular case.
There are lots of examples on this subject that use the exact
Like I said, although it shouldn't make any difference if I'm using
the fully qualified path or not, I did try your suggestion and it
still gave me null.
I'm not questioning your program, I'm asking for help with my
particular case.
There are lots of examples on this subject that use the
I was hoping I was missing a permission or something like that.
We haven't touched the firmware or the system database, in fact the
Motorola device is brand new, it came to my desk still closed in his
box.
Is there any way to reset to the factory settings and restore
everything?
I'll see if I
I was hoping I was missing a permission or something like that.
I am not aware of a permission needed for ANDROID_ID. If you wanted the
IMSI or IMEI, those would need a permission.
We haven't touched the firmware or the system database, in fact the
Motorola device is brand new, it came to my
My application does not require any special uses permission to read
ANDROID_ID; I use this code as on my HTC Hero:
String android_id = Secure.getString(this.getContentResolver(),
Secure.ANDROID_ID);
Tor
On Jan 29, 2:35 pm, flsobral flsob...@gmail.com wrote:
I was hoping I was missing a
I found two apps on the Market that show the ANDROID_ID, and both show
the same value.
Looks like there's something wrong with the app compilation maybe?
On Jan 29, 11:44 am, Mark Murphy mmur...@commonsware.com wrote:
I was hoping I was missing a permission or something like that.
I am not
On Jan 29, 5:44 am, Mark Murphy mmur...@commonsware.com wrote:
I am not aware of a permission needed for ANDROID_ID. If you wanted the
IMSI or IMEI, those would need a permission.
What permission is needed to show the IMSI or IMEI and how are those
values accessed? What is the purpose of
I am not aware of a permission needed for ANDROID_ID. If you wanted the
IMSI or IMEI, those would need a permission.
What permission is needed to show the IMSI or IMEI and how are those
values accessed?
READ_PHONE_STATE, or something like that. They are available via
TelephonyManager, IIRC.
The emulator always returns null.
On Jan 28, 6:14 am, flsobral flsob...@gmail.com wrote:
Hello.
I'm trying to get the ANDROID_ID on two different devices but it
always return null on both.
I'm using a Google Ion (aka HTC Magic) with firmware 1.6 and a
Motorola Milestone with firmware 2.0.
Yes, I'm aware of that. In fact any value I try to retrieve from
Settings.System and Settings.Secure on emulator is null (like
DATE_FORMAT).
I'm testing on the two devices previously mentioned, and although I
can use the same method to get any other property value, it always
return null when I
On Jan 28, 11:34 am, Wayne Wenthin wa...@fuligin.com wrote:
I have a function for this since I munge up the android id and I need an
androidid for the emulator so I make one up. Hope this helps.
public String getandroidid() {
String AndroidID = System.getString(this.getContentResolver(),
It returns a unique string based on both
the android.provider.Settings.Secure.ANDROID_ID and
the android.os.Build.PRODUCT along with a unique code for my app (just
incase I want to build another) I am pretty sure the issue stated above is
a result of not using the full
Still, if I use your function I'll get the same string from different
devices of the same model.
Eg:
All users using Google Ion will return this string:
+ google_ion + a23456790112345b
It also doesn't matter if I use the class full name or not - and it
really shouldn't, but I tried it anyway
And my point is that you are not using the fully qualified path to the
ANDROID_ID. I KNOW my function works. That part is only there for use on
the emulator. Otherwise I would have many people complaining.
Feel free to use it or not. I was just trying to help. I saw a flaw in
your design
27 matches
Mail list logo