I'm trying to do an App to set a timer in my phone with an Intent
but I don't know why it doesn't do anything when I tried to set the timer.
Here's my code:
public void setTimerClick(View view) {
Intent i = new Intent(AlarmClock.ACTION_SET_TIMER);
i.putExtra(AlarmClock.EXTRA_MESSAGE, descriptionAlarm.getText().toString());
i.putExtra(AlarmClock.EXTRA_LENGTH, String.valueOf(timeTimer.getText().toString()));
i.putExtra(AlarmClock.EXTRA_SKIP_UI, true);
startActivityForResult(i, 1);
}
And there isn't any error message in the console.
What am I doing wrong?