Android current location

add code to gradle file

https://gist.github.com/0d83957b1fe22f553f50496adbb3c852

add permission in manifest

create button for fetching location. create three textview which shows latitude,longitude,address

interface image

xml code

final code

output

Last updated

Was this helpful?