Coder Social home page Coder Social logo

mobitrace's Introduction

MobiTrace

mobitrace's People

Contributors

babakap avatar rzbhk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rzbhk

mobitrace's Issues

Updates in background service

If app is destroyed, location updates stop (because the listener is MainActivity).

We should move this to a service in background.

Exception during insertion of WiFi record into database

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'long android.database.sqlite.SQLiteDatabase.insertWithOnConflict(java.lang.String, java.lang.String, android.content.ContentValues, int)' on a null object reference
at com.uf.nomad.mobitrace.database.DataBaseHandler.insertWiFiRecord(DataBaseHandler.java:102)
at com.uf.nomad.mobitrace.wifi.WifiScanningService$1.onReceive(WifiScanningService.java:64)

Location services turned off

After the location service has started, the user can turn off the location services, it will no longer receive location change updates and there are not broadcasts associated with location being turned on/off (There used to be, but removed)
So we have check location is on, only on actions using:

String locationProviders = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);
if (locationProviders == null || locationProviders.equals("")) {
...
startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));
}

We might have to periodically check to see if location is on using a timer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.