Why isnt my phone vibrating when i press the button?

前端 未结 3 1614
囚心锁ツ
囚心锁ツ 2021-01-21 10:43

Hi im trying to make it that when a user clicks on on a button the phone vibrates. Heres manifest.xml and AndroidVibrator.java so whats wrong? how can i fix it? thanks!

3条回答
  •  春和景丽
    2021-01-21 11:27

    Make sure you call

      
    

    In your manifest

    EDIT:

    Try putting your permission at the end of the manifest, or after version code.

提交回复
热议问题