Skip to content

behniafb/Anti-TheftBT

 
 

Repository files navigation

##Anti-TheftBT

Anti-Theft BT is designed to protect your luggage and belongings. It works on Bluetooth so it consumes very less battery. Once you start the service in app, the app start scanning your luggage. Whenever, your luggage leaves your proximity the app raises an alarm to let you know that a luggage has gone missing. The luggage may have an 'embedded bluetooth device' (like HC-06 / HC-05) or, a mobile phone with bluetooth switched ON which can be used as a beacon. When you start Anti-Theft BT (ATBT) for the first time, it asks you for the devices you want to protect. Once you save the list of chosen devices, it is accessible to you until you replace it with a new list of chosen devices (from settings).

##Features

  • Before starting the ATBT service, please ensure that every device in the list is able to get connected to your device. This can be done by tapping the device name in the list. If the icon against it tuns into a green tick, then that device is able to connect to your mobile. If the icon remains red cross, it means there is a problem with the target device. You need to give permissions to target device to automatically connect to your device. If all the devices in the Chosen Device List have green tick, you are good to go! Once you tap the 'Start Service' button, the scanning service starts.

  • If the Bluetooth accidentally gets turned off midway while the service is running, it is restarted again automatically!

  • ATBT service runs with higher priority than rest of the default services of android. So, it keeps running until you manually stop it, or your battery runs out :P. This is important so that Android OS doesn't kill this service midway accidentally/automatically due to low memory.

  • ATBT service can be stopped from 'Stop Service' button in menu.

  • Logs can be created by tapping 'Start Logging'. It can be stopped by tapping 'Stop Logging' (the same button).

  • The missing devices list shows the updated list of missing devices, i.e if a device goes missing but it comes in range again, the missing device list won't show it. The refresh button in 'Missing Device List' activity serves the same purpose.

  • More devices can be added to the 'Chosen Device List' by using the 'Add devices to list' button in Settings menu.

  • 'Reset service' button resets the whole service. Use this only in extreme cases!

  • 'Maximum Connection Time' is the expiry time of an embedded timer of the app. When the app cannot connect to a device within this time, it will raise the alarm. Please use this with care. Default value it 6000 ms. Minimum value is 1000 ms. Average time for a connection to be established is about 5300 ms.

  • 'Delay' is the minimum sleep time between two consecutive connections to devices in the list. Default value is 100 ms. Minimum value is 100 ms.

  • 'Allow device name in log?' button gives you the control whether to include the devices' name in logs or not! This is to protect your privacy.

  • 'Password' button is to reset your password. Default password is nothing (i.e. empty) :P. It also has the option to let you decide whether you want password on every start of app or not. Password field can only accept numerical fields as input.

  • 'Missing Sound Alert' gives you the option of choosing the 'Custom alert audio'.

  • You can see the missing devices from notifications even when the app is password protected. But you cannot stop the service until you have entered the correct password.

Keep in mind this is still a work in progress. There are thousands of things to do and I hope I'll have enough time to develop all of the features I have in mind :)

##Installation Download the repositary and build using android studio.

##Download Download AntiTheft-BT apk file from here.

##Software Used

It has been developed using the following software:

  • Android SDK 4 (android-4)
  • Android Development Tools (ADT) 8.0.1
  • Eclipse IDE 3.6

Go the Android Developers website for complete installation instructions.

About

Source code for Anti-Theft BT app.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%