0

I'm making an Android app which would make the phone go on silent or in vibration mode at a user defined time.

I've learned how to toggle between silent mode to normal mode and to get the current time using calendar.

I want to know how can I turn my phone silent at a particular time even the app is not running?. Basically I want it to be like an alarm clock to make my phone silent.

Qantas 94 Heavy
  • 15,750
  • 31
  • 68
  • 83
Ish
  • 194
  • 1
  • 2
  • 13

1 Answers1

1

create a pending intent using alarmamanager wakeup when ever you want to set up phone silent

for alarma manager check here

Community
  • 1
  • 1
pavanmvn
  • 749
  • 10
  • 21