How can I call the date time settings screen from my android application?

SIVAKUMAR.J picture SIVAKUMAR.J · Sep 11, 2012 · Viewed 8.3k times · Source

I'm developing an application for mobiles and tables using Android 2.3.

In my application, I want the user able to modify device's date, time values. I know that it is not possible via android applications.

I planned to access the date/time settings screen from my application. From that screen user can change the settings.

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

All are welcome to give your ideas.

Answer

Chirag picture Chirag · Sep 11, 2012

Try using this code. It opens the date and time setting screen .

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