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 ask for ANDROID_ID.



On Jan 28, 1:41 pm, jotobjects <jotobje...@gmail.com> wrote:
> 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.
>
> > I've been using this small sample to show the id, but it always shows
> > null:
>
> >     public void onCreate(Bundle savedInstanceState)
> >     {
> >         super.onCreate(savedInstanceState);
> >         setContentView(R.layout.main);
>
> >         Toast.makeText(this, "ANDROID_ID: " + Secure.getString
> > (getContentResolver(), Secure.ANDROID_ID),
> >                                                                             
> >              Toast.LENGTH_LONG).show();
> >     }
>
> > Any suggestions?
>
> > Thanks in advance.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to