Import the package where you wanna use it. Start the location service . This will also ask the user for permission if not asked previously by another package. You can also force the use of Android LocationManager instead of Google’s FusedLocationProvider by setting the forceAndroidLocationManager property to true .