You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no method with the following signature....
public void gpsLocationFetched(Location location, String placeName) {}
instead its
public void gpsLocationFetched(Location location) {}
how do I get location name using this library? please respond soon..... Thanks
The text was updated successfully, but these errors were encountered:
Example-:
public void gpsLocationFetched(Location location) {
if (location!=null){
// you will get user's current location
String place_name=new GetAddress(this).fetchCurrentAddress(location)
}else {
Toast.makeText(this,"Unable to find location",Toast.LENGTH_SHORT).show();
}
}
On Oct 9, 2017 9:15 PM, "ankuryadav7" ***@***.***> wrote:
Hi Awais,
Yes there is a typo error. Have removed the place name parameter from the
method because sometimes Geocoder gives "null" in location name.
You can use the below class for getting the place name.
https://github.com/ankuryadav7/FusedBulb/blob/
master/app/src/main/java/com/fusedbulb/GetAddress.java
Example-:
public void gpsLocationFetched(Location location) {
if (location!=null){
// you will get user's current location
String place_name=new GetAddress(this).fetchCurrentAddress(location)
}else {
Toast.makeText(this,"Unable to find location",Toast.LENGTH_SHORT).show();
}
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZKIvZLdaQyrZRJWdkyLUZb2RN1FiEJYks5sqkaygaJpZM4PyEUC>
.
There is no method with the following signature....
public void gpsLocationFetched(Location location, String placeName) {}
instead its
public void gpsLocationFetched(Location location) {}
how do I get location name using this library? please respond soon..... Thanks
The text was updated successfully, but these errors were encountered: