In my project I used Google Maps Activity and to get the user's current location I used setMyLocationEnabled(this);
method to get the location. And when I tried to fetch the latitude and longitude from that location it throws a error says null object reference.
I looked for many videos in YouTube and examined many questions in stack overflow and blogs but I can't find the proper code to be done to do that. Some use deprecated methods and some go way beyond the topic.
So all I want is to do the reverse geo coding to get the address from my location and also add a marker at that point.
Help me guide what to do and how to obtain that I'm stuck with that from past 4 days.