Android Question Programmatically Setting Android Time

seskindell

Active Member
Licensed User
Longtime User
Can somebody tell me how I would implement something like this from B4A?

Thank you

public void setTime(long time) {
if (ShellInterface.isSuAvailable()) {
ShellInterface.runCommand("chmod 666 /dev/alarm");
SystemClock.setCurrentTimeMillis(time);
ShellInterface.runCommand("chmod 664 /dev/alarm");
}
}
 
Top