mirror of
				https://github.com/bspeice/itcs4180
				synced 2025-11-04 02:10:32 -05:00 
			
		
		
		
	Updated method calls for getRiddleImageUrl
This commit is contained in:
		@ -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());
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user