I want to use user's location in my android app. But I want the user to allow the app to use the user's location. So I want to have a dialog asking for user's permission to use the location when the user starts the app.
To use the location I know I have to use the <uses-permissions>
in the AndroidManifest.xml
e.g. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION">
So now I want to control this permission programmatically. Can it be done? If Yes please share some pointers.
Thanks, Punit