Good Saturday!
I have a MainActivity class and Location class (actually empty). I want to get device latitude and longitude, so in that way call them in the main activity just like:
Location location new Location();
location.getLatitude();
location.getLongitude();
I don't know if is that possible, I mean do all the work in the Location class and just get the results in the MainActivity (preferably in a number value)... Is that possible? Can somebody please help me?
Greetings!