-2

I have an activity when I click on a button it has to return a google map and while confirmation the fragment disappears and it shows a TextView in my activity containing the current address. I saw similar questions but they don't solve that particular issue.

Maryam
  • 5
  • 5

1 Answers1

0

So you need to make to steps: 1) get location latlng via FusedLocationProviderClient like mFusedLocationProviderClient.getLastLocation().addOnSuccessListener() Or mFusedLocationClient.requestLocationUpdates(...)

After getting Location location:

2) Accessing adress,states from longitude amd lattitude with google API

Vadim Eksler
  • 865
  • 9
  • 24