I'm creating an app on Android (with Android Studio) from Shopping. The idea is to register an in-app purchase that the user made. What you wanted is when you do this to get the latitude and longitude of where it is.
Asked what class and method do I use for this on Android?
I mean Android 5, 6 up.