lmilunovic / mine-field-alarm-android Goto Github PK
View Code? Open in Web Editor NEW📱Android application that triggers alarm when user comes near a minefield.
License: GNU General Public License v3.0
📱Android application that triggers alarm when user comes near a minefield.
License: GNU General Public License v3.0
It should be decided how alarm will response.
Lets say user aproaches near unsafe area and triggers the alarm.
User leaves area and enters again within 5-10 seconds - alarm triggers again.
It could be annoying and bad UX.
Those resources need some cleanup or to be moved in res folder from app/src/main
https://github.com/Ladislav92/Mine-Field-Alarm-Android/tree/master/MineFieldAlarm/app/src/main
Instead of using geolocation API we should consider GPS API since it is probably more precise.
When I started implementing the app I tested Geolocation precision a bit. In an urban area, it could make mistakes from 50m to 150m with 3G / H+ network. So that has to be accounted when making a decision about triggering the alarm.
Never tested it in open field.
The user should be explicitly asked for permission for location if the app has no permission. Right now that is not implemented and it should be.
When I want to turn off the tracking service, by clicking on the radio button, app crashes.
Logcat says: FATAL EXCEPTION: main
Process: com.example.ladislav.minefieldalarm, PID: 2748
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
Points to the SettingsActivity.java , line 34.
Right now, the application is supposed just to connect to the database that already contains data.
Maybe some other option could be introduced, even client-server app or something.
UI is really basic and should be improved for different screen sizes etc...
Geofences API doesn't let tracking more than 99 geofences simultaneously, so I would like to implement custom geofence class because I don't want to rely on API for such important question.
We have some math ahead there:
So we need to implement a mechanism for the collisions of a user and minefield border.
We need to calculate (depending on the precision of received location) safe area to come near the minefield - we don't want the app to trigger an alarm when a user actually enters in.
If someone has a good argument not to do this, go on.
The first idea for this application was to be a part of UDAS organization, but since we decided to "spread the word" this activity has no meaning anymore.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.