1

I know that I can't change system time on android. But I need to modify time that dispays on screen clock (in the corner). Is it possible to do this?

Makram Saleh
  • 8,613
  • 4
  • 27
  • 44
user3876608
  • 111
  • 10
  • Your question is not clear – S. S. Rawat Jul 25 '14 at 10:58
  • No there is no way to alter the time displayed by the OS. You can changed the system time if the device is rooted though. See http://stackoverflow.com/questions/8739074/setting-system-time-of-rooted-phone – CurlyPaul Jul 25 '14 at 11:48

2 Answers2

0

There is no way to edit the system's/OS time programmatically. However you can invoke the settings to open the date/time activity but the user has to change the time.

startActivity(new Intent(android.provider.Settings.ACTION_DATE_SETTINGS));

Alex
  • 3,382
  • 2
  • 32
  • 41
  • No :( I need to change the time without letting user know. I thought that I can replace the time displayed by the OS with something else without invoking to system time – user3876608 Jul 25 '14 at 14:17
-1

Hei, you can set the new time in Android Programatically. See this Question on SO Set Android Date/ Time . Don't forgot to use this: startActivity(new Intent(android.provider.Settings.ACTION_DATE_SETTINGS));

Community
  • 1
  • 1
alex_au
  • 240
  • 1
  • 2
  • 11