Mono for android - Android.OS and Android.Provider assemblies? -
I am using Mono for Andorra 4.6, I am trying to get information about the device. The samples I have seen are below, but I'm not sure what to add to get this reference?
var device = Android.OS.Build.Device; // Type or namespace OS does not exist ... (unsupported failed?) Var id = Android.Provider.Settings.Secure.GetString (ContentResolver, Android.Provider.Settings.Secure.AndroidId); // Type or namespace 'provider' does not exist .. (unavailable assembly?)
Try this way:
using Android .OS; Using Android. the provider; Using Android. Content; Using Android. App; Var device = build.device; Var id = settings Safe. GetString (Application Content Content Resolver, Settings. Secure.Android Ed);
Comments
Post a Comment