[mono-android] How to get UID using getContentResolver

www at gencode.com www at gencode.com
Tue Mar 22 23:22:50 EDT 2011


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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110322/988a28bc/attachment.html 


More information about the Monodroid mailing list