How can I call the date time settings screen from an Android app?

I am developing an application for mobile phones and spreadsheets using Android 2.3.

In my application, I want the user to be able to change the date and time of the device. I know this is not possible with Android apps.

I planned to access the date and time settings screen from my application. From this screen, the user can change the settings.

Please give your ideas on how to access or go to the date time settings screen from the Android application.

We invite everyone to accept your ideas.

+4
source share
1 answer

Try using this code. The date and time setting screen appears.

startActivityForResult(new Intent(android.provider.Settings.ACTION_DATE_SETTINGS), 0); 
+15
source

Source: https://habr.com/ru/post/1433571/


All Articles