I wish did fix the issue. Go to the Eclipse Toolbar Click on Window-> Show view -> DDMS -> Emulator control in the emulator control manually enter location Longitude and Latitude , then check hope it works fine !!!
getLastKnownLocation() does not necessarily give current location
Does that help Have you tried requesting permission to the ACCESS_FINE_LOCATION provider in your manifest and then from the LocationManager, calling getLastKnownLocation(LocationManager.GPS_PROVIDER)? It should return to you the last known location acquired by the GPS provider, else null if it can't get the location
Search specific keyword and give results nearer to our current location
I wish this help you As I see you are already familiar with the geolocation filters provided by solr. So what is your problem here? Do you already provide the geolocation when you index your data?
//The form you use for the submission of your search query
<form action="search.php" method="post">
//Here are your form elements below are the hidden fields.
<input type="hidden" name="long" value=""/>
<input type="hidden" name="lat" value=""/>
//Getting the location once the page finished loading
$( document ).ready(
//Location callback. We set the long and lat values of the hidden fields.
//The form was submitted so in your form submission handling code:
$long = $_POST["long"];
//Now you have your variables. You can now put them inside your query
//DO your query
Get Current Location 0 in marshmallow where below 23 API its give exact current Location using fused Location