Updated to meet LocationLib
Change-Id: I697384f6f9958f3eca8e80030a091b5bebf7fbf3 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -23,10 +23,9 @@ package com.TwentyCodes.android.IOIOTruck;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import com.TwentyCodes.android.location.LocationSelectedListener;
|
||||
import com.TwentyCodes.android.location.MapView;
|
||||
import com.TwentyCodes.android.location.RadiusOverlay;
|
||||
import com.TwentyCodes.android.location.UserOverlayMapFragment;
|
||||
import com.TwentyCodes.android.location.OnLocationSelectedListener;
|
||||
import com.TwentyCodes.android.overlays.RadiusOverlay;
|
||||
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
|
||||
* @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 RadiusOverlay mRadiusOverlay;
|
||||
private LocationSelectedListener mLocationSelectedListener;
|
||||
private OnLocationSelectedListener mLocationSelectedListener;
|
||||
|
||||
/**
|
||||
* Creates a new MapFragment
|
||||
@@ -91,7 +90,7 @@ public class MapFragment extends UserOverlayMapFragment implements LocationSelec
|
||||
* @param listener
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public void setLocationSelectedListener(LocationSelectedListener listener){
|
||||
public void setLocationSelectedListener(OnLocationSelectedListener listener){
|
||||
mLocationSelectedListener = listener;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import com.TwentyCodes.android.IOIOTruck.IOIOTruckManager.IOIOTruckThreadListene
|
||||
import com.TwentyCodes.android.location.CompassListener;
|
||||
import com.TwentyCodes.android.location.GeoPointLocationListener;
|
||||
import com.TwentyCodes.android.location.GeoUtils;
|
||||
import com.TwentyCodes.android.location.LocationSelectedListener;
|
||||
import com.TwentyCodes.android.location.OnLocationSelectedListener;
|
||||
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
|
||||
* @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 IOIOTruckManager mIOIOManager;
|
||||
@@ -422,4 +422,10 @@ public class NavigationActivity extends FragmentActivity implements CompassListe
|
||||
updateLog(log);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFirstFix(boolean isFirstFix) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user