Allow phone to vibrate when screen turns off

前端 未结 2 669
别那么骄傲
别那么骄傲 2021-01-25 09:08

I am looking for a way to allow my program to make the phone vibrate after the screen has turned off from timing out. I have done lots of research, and have not found something

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-25 09:31

    For me the solution was to use directly vibrate without patterns, so I don't have to use PowerManager to wake lock.

提交回复
热议问题