![]() ![]() We will create different apps that show how to get a users current location, update it periodically and detecting the user’s current activity. Location Services provides new features such as activity detection that aren’t available in the framework API.ĭevelopers using the framework API, as well as those now adding location-awareness to their apps, are strongly advised to use the Location Services API and this is what we will look at in this article. The Google Location Services API, part of Google Play Services, provides a more powerful, high-level framework that automates tasks such as location provider choice and power management. ![]() The latter is the recommended method for accessing Android location. To get the user’s current location on Android, you can use the Location API that has been part of the Android framework since API level 1, or you can use the Google Location Services API, which is part of Google Play Services. Some apps take advantage of this and change their behaviour according to the users location and/or current activity to provide a better individualized service. ![]() People like to take their mobile devices everywhere and use them constantly. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! This article was peer reviewed by Marc Towler. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |