Git Product home page Git Product logo

significantlocationchange-android's Introduction

SignificantLocationChange-Android

SignificantLocationChange : The name itself says about something related to location! Yes, To being updated about current location within specific time interval is very frustrating task in terms of battery consumption! I tried my best to give better solution to keep your user updated with location without handling any time interval. This interface delivers new events only when it detects changes to the device’s associated cell towers, resulting in less frequent updates and significantly lower power usage. It will keep you updated when your users location will be changed in terms of distance 500 meters or more. This is what we called Significant Location Change. Enjoy with very simple implementation by calling startReceivingUpdates method whenever you need it and implement the interface which will keep you updated with Significant Location Change.

How to use it?

StartReceiving Updates whenever you need it by calling : SignificantLocationChange.sharedInstance().startReceivingUpdates(SampleActivity.this);

StopReceiving Updates whenever you are done with your stuffs by calling : SignificantLocationChange.sharedInstance().stopReceivingUpdates(SampleActivity.this);

Implement interface to be updated with new location :

Interface : SignificantLocationChange.SignificantLocation

@Override public void onLocationChanged(Location mLocation) {

}

Enjoy!

significantlocationchange-android's People

Contributors

jaipatel10 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.