Enable Safety assistance emergency mode

后端 未结 2 1386
猫巷女王i
猫巷女王i 2021-02-07 23:11

Its a very interesting and new thing for me to implement and learn. There are some requirement of my application. For that I have searched a lot but couldn\'t find proper and va

相关标签:
2条回答
  • 2021-02-07 23:44

    I guess this is not a simple task, since the trigger is a keypress of vol+ and vol- for three seconds (if I remember correctly). I'm not sure if it is possible to hook those keys from a service (since this would a keylogger also do). However if you got this managed you just need to enable GPS by code. When done you just need to get the users position.

    The next step is to let the user select some contacts where the data should been send. That should been the easest part. The next step is to make some photos and record some audio and send those data per mms to the desired persons.

    0 讨论(0)
  • 2021-02-07 23:51

    It's not possible to capture home button event from service. You can capture volume up/down event using BroadcastReceiver when phone is unlocked.

    This looks like nice idea but also not doable in this way.

    0 讨论(0)
提交回复
热议问题