How to get network provided date and time without internet connection?
问题 I want to use network provided date and time in my android application even if network date and time is disable in device setting and there is no internet connectivity . Is there any possibility or any solution? I referred this question but I didn't get perfect solution. 回答1: You can try this: String s1= android.provider.Settings.System.getString(this.getContentResolver(), android.provider.Settings.System.AUTO_TIME); if (s1.contentEquals("0")) { android.provider.Settings.System.putString(