I do not know whether I should post it here or in #android channel (or elsewhere), but I would like to share with the community an article I just published that presents some features of the Google Location API (available in the Google Play Services). In addition to the article, you can find a demo app that implements all the topics covered in that article (I made it by using Kotlin, so this is why I am adding it here 🙂). The idea is to help anyone who wants to add location awareness to an app, and show that with the help of the Location API, this is easier than ever.
This is what you will find in the article and the demo app:
1. Location Tracking
1.1 Get the last known location
1.2 Receive location updates
1.3 Display current location address (reverse geocoding)
2. Activity Recognition
2.1 Detect the most probably activity you are doing (e.g.: walking, driving a car, etc)
3.1 Create geofences
3.2 Monitor geofences by adding a notification when you enter and leave in a geofence area
You can find the article at ( http://androidahead.com/2018/05/24/android-location-api-wkotlin/ ). Besides this article, there are many others I've been publishing for the last couple of years. All the demo apps are under MIT or Apache2.0, so you can use them the way you want.
You can download the app on GitHub at ( https://github.com/JoaoMotondon/LocationApiDemoApp )
In case this should not be posted here, please, anyone let me know (or maybe move it to the right channel).
05/24/2018, 1:55 AM
Cool! Maybe you can use a different color other than light grey for links going to google dev site.
05/24/2018, 8:15 AM
It’s ok to post Kotlin-related articles here, but try to make an announcement short, please. Just a brief info about the topic and the link.
05/24/2018, 1:32 PM
Thanks @Hong for your suggestion. I'm working on it already. I know that color is somehow annoying 🙂
Thanks @orangy for your comments. I'll consider it on my next post. Have a great day!