Shake Device to Launch App

后端 未结 4 1994
孤独总比滥情好
孤独总比滥情好 2021-01-02 20:52

I am using this to work with Shake, and that works fine for me, but i wanna launch application when user shake their device, see my code below:

 @Override
           


        
4条回答
  •  猫巷女王i
    2021-01-02 20:59

    You need to write the code to launch the application to foreground from background while the shake started. This link will help you to do so.

提交回复
热议问题