From 553e8748fd068ba47d77c6e9fde8955237552af5 Mon Sep 17 00:00:00 2001 From: tokugawa Date: Sat, 19 Apr 2014 23:39:53 -0400 Subject: [PATCH] Updated method calls for getRiddleImageUrl --- UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java | 4 ++-- UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java | 2 +- UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java index 3cb942d..6bd1257 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java @@ -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); diff --git a/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java index 2c63ef0..efaf8c2 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/MainActivity.java @@ -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 diff --git a/UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java index 582fbb1..7796e99 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/SearchActivity.java @@ -138,7 +138,7 @@ public class SearchActivity extends Activity { } else { - new ImageDownloader().execute(restLocation.getLocationImageURL()); + new ImageDownloader().execute(restLocation.getRiddleImageURL()); } }