Xamarin Android Check AutoTime date & time settings
 
Xamarin android check autotime,  date & time settings.

SDK_NO >= 17
	 
	public static bool IsAutoTimeEnabled(Context context)
	{
		 int autoTimeInt = Android.Provider.Settings.Global.GetInt(context.ContentResolver, Android.Provider.Settings.Global.AutoTime);

		return (autoTimeInt > 0);
	}	 
	
SDK_NO <= 16
	 
	public static bool IsAutoTimeEnabled(Context context)
	{
		 int autoTimeInt = Android.Provider.Settings.System.GetInt(context.ContentResolver, Android.Provider.Settings.System.AutoTime);

		return (autoTimeInt > 0);
	}	 
	
 

Author: Engin ATALAY
Date: 6.04.2020 13:30:05
View Count: 1336
 
 

COMMENTS
 
No comments yet. Be the first to comment who you are.
 
 
 
 
 
 
 
WRITE COMMENT
 
 
Your Name :
 
 
 
E-mail :
 
 
 
Your Message :
 
 
 
 
 
 
 
This project : ASP.NET MVC , RAZOR, Entity Framework , CSS , HTML , JQUERY(2.0.2) , AJAX the C# side-tier architecture was developed with logic.
 
Yukarı Çık