In AndroidManifest.xml add uses-permission and uses-feature for location, and add receiver