Setup some tunes that play when you enter geofences, aka GeoTunes!
![Get it on Google Play](art/google-play-badge-small.png?raw=true)
This app provides a nice example of how to set up, register, use, reregister, and store geofences using the Places API from Google Play Services. It also uses the Places Autocomplete API to allow the user to input any location. GeoTunes are stored using a content provider, which is a bit of overkill, but meh. They are fetched using a Loader (oldskool) and stored using an IntentService.
If you want the app to build properly, you will need to generate your own API key from the Google API Console and add it to your gradle.properties file (create one in your home directory, under .gradle
). The app also uses Fabric for Crashlytics, so you might need to generate your own Crashlytics key. All in all, your gradle.properties
will look something like this:
GEOTUNE_FABRIC_KEY = SomeKeyOnlyReallyNeededForReleaseBuilds
GEOTUNE_GOOGLE_API_KEY = AIzaSySomeApiKeyThatYouHaveGenerated
This app used to be closed source, and contained a bunch of API keys, so the git history had to be reset. Sorry to all you history buffs
Pull requests are welcomed and encouraged. If you experience any bugs, please file an issue
Copyright 2015 Commit 451
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.