This may sound stupid, but I really can't find a way to change the system clock in this entire forum. I am using the DateUtils library download from this forum. I used the method "DateUtils.SetDateAndTime2" and it returns the long variable in Ticks. What should i do with the ticks?
I need the code to change the system clock in order to synchronise with my external device.
You mean there is no way we developer can do so? Then how does those clock apps able to do it?
There must be some way to use shell script to do it, right?
Some might be able, but require root access (rooted devices). Android permissions do not allow any app (other than system) to change the system's date and time.