Updated to meet LocationLib

Change-Id: I697384f6f9958f3eca8e80030a091b5bebf7fbf3
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-03-10 10:48:29 -05:00
parent fe5962a816
commit f32e6eb842
2 changed files with 13 additions and 8 deletions

View File

@@ -23,10 +23,9 @@ package com.TwentyCodes.android.IOIOTruck;
import android.util.Log; import android.util.Log;
import com.TwentyCodes.android.location.LocationSelectedListener;
import com.TwentyCodes.android.location.MapView; import com.TwentyCodes.android.location.MapView;
import com.TwentyCodes.android.location.RadiusOverlay; import com.TwentyCodes.android.location.OnLocationSelectedListener;
import com.TwentyCodes.android.location.UserOverlayMapFragment; import com.TwentyCodes.android.overlays.RadiusOverlay;
import com.google.android.maps.GeoPoint; import com.google.android.maps.GeoPoint;
/** /**
@@ -35,12 +34,12 @@ import com.google.android.maps.GeoPoint;
* Specifically this map view will allow user to select a point on the map via RadiusOverlay * Specifically this map view will allow user to select a point on the map via RadiusOverlay
* @author ricky barrette * @author ricky barrette
*/ */
public class MapFragment extends UserOverlayMapFragment implements LocationSelectedListener { public class MapFragment extends com.TwentyCodes.android.fragments.UserOverlayMapFragment implements OnLocationSelectedListener {
private final String TAG = "MapFragment"; private final String TAG = "MapFragment";
private RadiusOverlay mRadiusOverlay; private RadiusOverlay mRadiusOverlay;
private LocationSelectedListener mLocationSelectedListener; private OnLocationSelectedListener mLocationSelectedListener;
/** /**
* Creates a new MapFragment * Creates a new MapFragment
@@ -91,7 +90,7 @@ public class MapFragment extends UserOverlayMapFragment implements LocationSelec
* @param listener * @param listener
* @author ricky barrette * @author ricky barrette
*/ */
public void setLocationSelectedListener(LocationSelectedListener listener){ public void setLocationSelectedListener(OnLocationSelectedListener listener){
mLocationSelectedListener = listener; mLocationSelectedListener = listener;
} }

View File

@@ -42,7 +42,7 @@ import com.TwentyCodes.android.IOIOTruck.IOIOTruckManager.IOIOTruckThreadListene
import com.TwentyCodes.android.location.CompassListener; import com.TwentyCodes.android.location.CompassListener;
import com.TwentyCodes.android.location.GeoPointLocationListener; import com.TwentyCodes.android.location.GeoPointLocationListener;
import com.TwentyCodes.android.location.GeoUtils; import com.TwentyCodes.android.location.GeoUtils;
import com.TwentyCodes.android.location.LocationSelectedListener; import com.TwentyCodes.android.location.OnLocationSelectedListener;
import com.google.android.maps.GeoPoint; import com.google.android.maps.GeoPoint;
@@ -57,7 +57,7 @@ import com.google.android.maps.GeoPoint;
* + drive the truck forward or reverse to best navigate to the selected point * + drive the truck forward or reverse to best navigate to the selected point
* @author ricky barrette * @author ricky barrette
*/ */
public class NavigationActivity extends FragmentActivity implements CompassListener, GeoPointLocationListener, LocationSelectedListener, OnClickListener, OnCheckedChangeListener, IOIOTruckThreadListener { public class NavigationActivity extends FragmentActivity implements CompassListener, GeoPointLocationListener, OnLocationSelectedListener, OnClickListener, OnCheckedChangeListener, IOIOTruckThreadListener {
private static final String TAG = "NavigationActivity"; private static final String TAG = "NavigationActivity";
private IOIOTruckManager mIOIOManager; private IOIOTruckManager mIOIOManager;
@@ -422,4 +422,10 @@ public class NavigationActivity extends FragmentActivity implements CompassListe
updateLog(log); updateLog(log);
} }
@Override
public void onFirstFix(boolean isFirstFix) {
// TODO Auto-generated method stub
}
} }