Hi, You app can obtain correct time from Location API or GPS http://developer.android.com/training/location/index.html or NTP eg: https://github.com/Free-Software-for-Android/NTPSync
Regards On Wednesday, April 20, 2016 at 6:31:27 PM UTC+10, Tafadzwa Innocent Chin'ombe wrote: > > > public class MainMenuActivity extends ListActivity { > > private static final String TAG = MainMenuActivity.class.getSimpleName(); > > @Override > protected void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.activity_main_menu); > try { > > //insure device date time is correct before app opens > String ServerDate= ""; > String DeviceDateTime ""; > > //if date & time correct opens else show a message corect device date time > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/1869580a-1459-49b1-a763-1e7890081084%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.