Tutorial Get Current Latitude & Longitude Android Studio 2017

Latitude and Longitude android studio 2017

Firstly, you must adjust some codes for androidmanifest.xml to make permission for internet and location to detect your latitude and longitude.

AndroidManifest.xml

androidmanifest.xml

Then, design your activity_main.xml. You can refer my video or design yourself. Make sure your variable is same.

Proceed with activity_main.java, here is the code:

Good Luck guys! =)
Please Like, Share & Subscribe for more videos!

Share This:

11 Replies to “Tutorial Get Current Latitude & Longitude Android Studio 2017

    1. Hi Hassan,
      Please check carefully, maybe there are some tiny mistake, such as capital letter or space.

Leave a Reply

Your email address will not be published. Required fields are marked *