mirror of
https://github.com/bspeice/itcs4180
synced 2024-11-08 16:38:14 -05:00
Updated method calls for getRiddleImageUrl
This commit is contained in:
parent
b12a4022f5
commit
553e8748fd
@ -74,8 +74,8 @@ public class CompassActivity extends Activity implements SensorEventListener
|
||||
searchLocation.setLongitude(-80.733734);*/
|
||||
|
||||
searchLocation = new Location(LocationManager.NETWORK_PROVIDER);
|
||||
searchLocation.setLatitude(restLocation.getLocationLat());
|
||||
searchLocation.setLongitude(restLocation.getLocationLong());
|
||||
searchLocation.setLatitude((float)(restLocation.getLocationLat()));
|
||||
searchLocation.setLongitude((float)(restLocation.getLocationLong()));
|
||||
|
||||
locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
|
||||
locationListener = new DirectionListener(searchLocation);
|
||||
|
@ -94,7 +94,7 @@ public class MainActivity extends Activity {
|
||||
}
|
||||
}.execute();
|
||||
|
||||
//Toast.makeText(getApplicationContext(), ""+locations.get(0).getLocationImageURL(), Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(getApplicationContext(), ""+locations.get(0).getRiddleImageURL(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -138,7 +138,7 @@ public class SearchActivity extends Activity {
|
||||
}
|
||||
else
|
||||
{
|
||||
new ImageDownloader().execute(restLocation.getLocationImageURL());
|
||||
new ImageDownloader().execute(restLocation.getRiddleImageURL());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user