christocracy/cordova-plugin-background-geolocation — pull request #6 by christocracy (2014-03-01 20:10:27+00:00)
Title: Android

@samsonasu I've refactored the Android side a bit, porting some features I fleshed-out in iOS. Features such as stationary-region monitoring, scaled distance-filtering, stop-detection.

I'm a Java noob so it'd be great if you could generally review all of `LocationUpdateService.java'. Your persistence layer is untouched and operates flawlessly.

I found it convenient to attach BroadcastListener instances right onto the Service, like closures within the service instance, rather than putting into separate file and pushing Intents.

Both platforms now implement a `debug:true` mode, causing the native side emit unique sounds for life-cycle events, like "create stationary region", "exit stationary region", "location changed".