Android App for getting current Location using Google Fused Api. And if no previous data for location is available, it gets the current location.
Here you can see the Demo Video.
For step by step tutorial visit Android Tech Point.
Follow the setps to successfully buid this app:
- Download Google Play Services from
SDK Manager
. - In Build.gradle add dependency for google:
compile 'com.google.android.gms:play-services:10.0.1'
- Add premissions in androidmanifest.xml:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
``` ``` - Paste the code in you activity.
All Done. 👍