Develop a simple and practical Android emergency help software

Source: Internet
Author: User

Former girlfriend live alone, not at ease, want to find an emergency help software, in case of any unexpected situation, can immediately know. With Jinshan mobile phone defender's mobile location function can know the other side's position status, but can not actively send help information, in the online a lot of apk, are chicken function, all need to unlock, and open software, real emergency may not have time to complete this series of operations.

So I made a software like this, in case of emergency, continuously press the power button 5 times to send the SOS SMS and location information to the pre-designated users, this operation in the trouser pocket can be completed. The principle is very simple, is to set the listener to capture the screen switch, in a short period of time the screen switch reached a certain number of times, triggered the positioning of the mobile phone, positioning success, send text messages to pre-designated people.

There is a bug in the monitor power key, which is the case of the error, because the capture power key is actually capturing the screen switch, sometimes accidentally pressed a few times the switch will trigger distress. If you can capture the volume key under the lock screen, but I found the documents and materials are said in the lock screen cannot capture volume keys.

The other is the stability of the problem, such a software, you may have been not used, but also require you to use the time can be guaranteed to be available, need to boot, and can not be killed.

Such services should be done by mobile phone research and development companies, such as the millet to do, so as to capture the volume keys, but also to ensure stability and reliability.

Software has been in Baidu mobile phone assistant on-line, you can try, only to do personal use. Code has been placed on GitHub, the main implementation of the call Baidu location services, read and write database, are some simple things.

  

Reprint Please specify Source: Www.cnblogs.com/fengfenggirl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.