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 valuable thing or links. So i am posting my question here. The functionality are :
1) In Samsung device there is Safety Assistance
menu in which you can find Emergency Mode
option.
2) Now while Emergency mode
at that time I want to create a one or more primary contacts to Emergency Mode
. So now while holds the home and volume buttons the emergency
will be activated and notify by notification.
3) Now while the emergency
will be activated at the same moment GPS
would be enabled automatically and the two photos of current location would be captured automatically and finally locations and that two photos will send to that contacts which are added in Emergency mode
as a primary contact as a MMS
.
Note : If sound recorder option will be enabled then recorded file will also send in MMS
.
So if anyone knows or anyone implemented then I am very thankful to him/her. Help would be appreciated.
Emergency mode conserves your device's remaining power when you are in an emergency situation. Battery power is saved by: Turning off Mobile data when the screen is off. Restricting usage to essential apps and those you select.
Safety assistance is an app included in your Samsung smartphone. With it, you can use different tools that can help you during emergency situations. All you have to do to use these services is to access the Safety assistance main menu and tap on the different icons.
Leave your phone turned on, but remove the battery from the phone. Then let it sit for 5 to 10 minutes before putting the battery in and turning the phone back on. This resets the phone and makes it begin working again without using the emergency mode.
Emergency mode enables you to extend your device's standby time when you are in an emergency situation and you want your device to conserve power for as long as possible.
When this happens, Home Assistant will start in “Safe mode” using this integration. In this mode, nothing is loaded, but it does give you access to the Home Assistant frontend, settings and add-ons.
Safe mode starts Windows in a basic state, using a limited set of files and drivers. If a problem doesn't happen in safe mode, this means that default settings and basic device drivers aren't causing the issue. Observing Windows in safe mode enables you to narrow down the source of a problem, and can help you troubleshoot problems on your PC.
If a problem doesn't happen in safe mode, this means that default settings and basic device drivers aren't causing the issue. Observing Windows in safe mode enables you to narrow down the source of a problem, and can help you troubleshoot problems on your PC. There are two versions of safe mode: Safe Mode and Safe Mode with Networking.
There are two versions of safe mode: Safe Mode and Safe Mode with Networking. Safe Mode with Networking adds the network drivers and services you'll need to access the internet and other computers on your network.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With