I need current location of user in my application on based on that location I will search on database!
I am getting current location right now by using example code given but it is not accurate. If no GPS I get location by network provider but it shows sometime 2 location names at the same location. If it is showing one name 1 min before after 2 min it will change to another location.
This code is look but do not know how to use it. Please help me out in this regard!
What is the simplest and most robust way to get the user's current location on Android?
I need to get the location name.