[mono-android] How to get UID using getContentResolver

Jonathan Pobst monkey at jpobst.com
Wed Mar 23 00:15:10 EDT 2011


getXXX/setXXX became .NET properties:

Context.ContentResolver

Jonathan

On 3/22/2011 10:22 PM, www at gencode.com wrote:
> I am trying to get the unique id of the device.
>
> import android.provider.Settings.Secure;
>
> private String android_id =
> Secure.getString(getContext().getContentResolver(),
>
> Secure.ANDROID_ID);
>
> I could not find the getContentResolver method
>
> I got this so far
>
> Android.Provider.Settings.Secure.GetString(????
>
> Android.Provider.Settings.Secure.AndroidId);
>
> What am I missing in the ??? as I could not resolve the method
> getContentResolver()
>
>
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid



More information about the Monodroid mailing list