GithubHelp home page GithubHelp logo

trailblazer's Introduction

A location tracking service for Android, using Firebase

Use this library in your android application to track the device's location.

The service will report the location and the timestamp that the location was updated to firebase.

You can start and stop the service with an intent, and the parameters are controlled via extras packaged with that intent.

Using Firebase, you can get a realtime feed of location updates as they are broadcast.

For an example app using this service, and a simple google maps page displaying the information, see here

Settings

Constants are provided on the LocationService class for use as keys in the extras that you pass to the service.

The following options are supported:

  • FIREBASE_REF - REQUIRED A string that points to a location in your firebase. Must end with .json. Get more info at www.firebase.com
  • FIREBASE_APPEND - a boolean, defaults to false. If true, the service will append location data into your firebase, rather than replacing it.
  • LOCATION_POLL_INTERVAL - a long that determines how frequently the service checks for a new location
  • LOCATION_ACCURACY - Criteria.ACCURACY_{COURSE, FINE}. See the android Criteria documentation for details. Default is course.
  • LOCATION_POWER - Criteria.POWER_{LOW, MEDIUM, HIGH}. See the android Criteria documentation for details. Default is medium.

Notification options:

You can configure Trailblazer to put an icon in the user's notification bar, as well as display some text.

  • NOTIFICATION_ICON - an int corresponding to the drawable resource to use as the icon. This should look like R.drawable.<resource_name>
  • NOTIFICATION_ACTIVITY - a string. This should be the canonical name of the activity class to launch when the user selects the notification. Typically the name of your main activity.
  • NOTIFICATION_STARTUP - a string. The text to be displayed on the notification bar when the service starts.
  • NOTIFICATION_TEXT - a string. The text to be displayed next to the icon in the notification dropdown menu.

trailblazer's People

Contributors

gsoltis avatar

Watchers

 avatar  avatar

Forkers

nagyist

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.