I would like to be able to determine my current location in an android project, in order to obtain the latitude and longitude of my position to use them in a specific method, I have reviewed the resolved questions, but I do not understand the code that they have given as an answer, if you could give me a hand, i would appreciate it
As in one of the answers that you were given in other questions, it is used
LocationManager
This will bring you the current position, if there is no current position it will return null obviously but there is a method that does this job asynchronously
How to get latitude and longitude when starting the application:
Did you see the apache cordova documentation? there it appears how to do it, I did it but in ionic. I leave you the link, greetings.
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-geolocation/