I have created an application that changes the date/time settings on Android, but if I test it, it doesn't work.
Is that because of security from system inside android, or is something wrong?
Here is my code:
if (killed) {
// TODO Auto-generated method stub
AlarmManager a = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
long current_time_milliens = System.currentTimeMillis();
try {
a.setTime((long) current_time_milliens - 86400);
} catch (Exception e) {
// add exception handling
}