Updated to use the mapfragment progress circle
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
Binary file not shown.
@@ -239,44 +239,45 @@ or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>na
|
|||||||
public static int TextView01=0x7f070008;
|
public static int TextView01=0x7f070008;
|
||||||
public static int TextView02=0x7f070009;
|
public static int TextView02=0x7f070009;
|
||||||
public static int ad=0x7f07000a;
|
public static int ad=0x7f07000a;
|
||||||
public static int btRemoveTimer=0x7f070022;
|
public static int btRemoveTimer=0x7f070023;
|
||||||
public static int btSetTimer=0x7f070021;
|
public static int btSetTimer=0x7f070022;
|
||||||
public static int buttons=0x7f07000f;
|
public static int buttons=0x7f07000f;
|
||||||
public static int chNotify=0x7f07001c;
|
public static int chNotify=0x7f07001d;
|
||||||
public static int delete_car=0x7f070028;
|
public static int delete_car=0x7f070029;
|
||||||
public static int description=0x7f070005;
|
public static int description=0x7f070005;
|
||||||
public static int directions=0x7f070015;
|
public static int directions=0x7f070015;
|
||||||
public static int distance_background=0x7f070026;
|
public static int distance_background=0x7f070027;
|
||||||
public static int distancebar=0x7f07000d;
|
public static int distancebar=0x7f07000d;
|
||||||
public static int editText=0x7f070018;
|
public static int editText=0x7f070019;
|
||||||
public static int etNotify=0x7f07001e;
|
public static int etNotify=0x7f07001f;
|
||||||
public static int exception_text=0x7f070007;
|
public static int exception_text=0x7f070007;
|
||||||
public static int exception_title=0x7f070006;
|
public static int exception_title=0x7f070006;
|
||||||
public static int indicator=0x7f07000b;
|
public static int indicator=0x7f07000b;
|
||||||
public static int llButtons=0x7f070020;
|
public static int llButtons=0x7f070021;
|
||||||
|
public static int mapProgressBar=0x7f070017;
|
||||||
public static int map_fragment=0x7f07000e;
|
public static int map_fragment=0x7f07000e;
|
||||||
public static int map_mode=0x7f070027;
|
public static int map_mode=0x7f070028;
|
||||||
public static int mapview=0x7f070016;
|
public static int mapview=0x7f070016;
|
||||||
public static int mark_my_location=0x7f070012;
|
public static int mark_my_location=0x7f070012;
|
||||||
public static int my_location=0x7f070011;
|
public static int my_location=0x7f070011;
|
||||||
public static int none=0x7f070000;
|
public static int none=0x7f070000;
|
||||||
public static int notiyfyme=0x7f07001b;
|
public static int notiyfyme=0x7f07001c;
|
||||||
public static int pager=0x7f07000c;
|
public static int pager=0x7f07000c;
|
||||||
public static int parking_timer=0x7f070014;
|
public static int parking_timer=0x7f070014;
|
||||||
public static int pickerlayout=0x7f070019;
|
public static int pickerlayout=0x7f07001a;
|
||||||
public static int send=0x7f070004;
|
public static int send=0x7f070004;
|
||||||
public static int settings=0x7f070029;
|
public static int settings=0x7f07002a;
|
||||||
public static int show_both=0x7f070013;
|
public static int show_both=0x7f070013;
|
||||||
public static int skyhook_img=0x7f070023;
|
public static int skyhook_img=0x7f070024;
|
||||||
public static int tc_img=0x7f070025;
|
public static int tc_img=0x7f070026;
|
||||||
public static int text=0x7f070024;
|
public static int text=0x7f070025;
|
||||||
public static int tpParkingTimerTimePicker=0x7f07001a;
|
public static int tpParkingTimerTimePicker=0x7f07001b;
|
||||||
public static int triangle=0x7f070001;
|
public static int triangle=0x7f070001;
|
||||||
public static int tvAccuracy=0x7f070010;
|
public static int tvAccuracy=0x7f070010;
|
||||||
public static int tvAddress=0x7f070017;
|
public static int tvAddress=0x7f070018;
|
||||||
public static int tvBefore=0x7f07001f;
|
public static int tvBefore=0x7f070020;
|
||||||
public static int tvDistance=0x7f070003;
|
public static int tvDistance=0x7f070003;
|
||||||
public static int tvNotify1=0x7f07001d;
|
public static int tvNotify1=0x7f07001e;
|
||||||
public static int underline=0x7f070002;
|
public static int underline=0x7f070002;
|
||||||
}
|
}
|
||||||
public static final class integer {
|
public static final class integer {
|
||||||
|
|||||||
@@ -239,44 +239,45 @@ or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>na
|
|||||||
public static int TextView01=0x7f070008;
|
public static int TextView01=0x7f070008;
|
||||||
public static int TextView02=0x7f070009;
|
public static int TextView02=0x7f070009;
|
||||||
public static int ad=0x7f07000a;
|
public static int ad=0x7f07000a;
|
||||||
public static int btRemoveTimer=0x7f070022;
|
public static int btRemoveTimer=0x7f070023;
|
||||||
public static int btSetTimer=0x7f070021;
|
public static int btSetTimer=0x7f070022;
|
||||||
public static int buttons=0x7f07000f;
|
public static int buttons=0x7f07000f;
|
||||||
public static int chNotify=0x7f07001c;
|
public static int chNotify=0x7f07001d;
|
||||||
public static int delete_car=0x7f070028;
|
public static int delete_car=0x7f070029;
|
||||||
public static int description=0x7f070005;
|
public static int description=0x7f070005;
|
||||||
public static int directions=0x7f070015;
|
public static int directions=0x7f070015;
|
||||||
public static int distance_background=0x7f070026;
|
public static int distance_background=0x7f070027;
|
||||||
public static int distancebar=0x7f07000d;
|
public static int distancebar=0x7f07000d;
|
||||||
public static int editText=0x7f070018;
|
public static int editText=0x7f070019;
|
||||||
public static int etNotify=0x7f07001e;
|
public static int etNotify=0x7f07001f;
|
||||||
public static int exception_text=0x7f070007;
|
public static int exception_text=0x7f070007;
|
||||||
public static int exception_title=0x7f070006;
|
public static int exception_title=0x7f070006;
|
||||||
public static int indicator=0x7f07000b;
|
public static int indicator=0x7f07000b;
|
||||||
public static int llButtons=0x7f070020;
|
public static int llButtons=0x7f070021;
|
||||||
|
public static int mapProgressBar=0x7f070017;
|
||||||
public static int map_fragment=0x7f07000e;
|
public static int map_fragment=0x7f07000e;
|
||||||
public static int map_mode=0x7f070027;
|
public static int map_mode=0x7f070028;
|
||||||
public static int mapview=0x7f070016;
|
public static int mapview=0x7f070016;
|
||||||
public static int mark_my_location=0x7f070012;
|
public static int mark_my_location=0x7f070012;
|
||||||
public static int my_location=0x7f070011;
|
public static int my_location=0x7f070011;
|
||||||
public static int none=0x7f070000;
|
public static int none=0x7f070000;
|
||||||
public static int notiyfyme=0x7f07001b;
|
public static int notiyfyme=0x7f07001c;
|
||||||
public static int pager=0x7f07000c;
|
public static int pager=0x7f07000c;
|
||||||
public static int parking_timer=0x7f070014;
|
public static int parking_timer=0x7f070014;
|
||||||
public static int pickerlayout=0x7f070019;
|
public static int pickerlayout=0x7f07001a;
|
||||||
public static int send=0x7f070004;
|
public static int send=0x7f070004;
|
||||||
public static int settings=0x7f070029;
|
public static int settings=0x7f07002a;
|
||||||
public static int show_both=0x7f070013;
|
public static int show_both=0x7f070013;
|
||||||
public static int skyhook_img=0x7f070023;
|
public static int skyhook_img=0x7f070024;
|
||||||
public static int tc_img=0x7f070025;
|
public static int tc_img=0x7f070026;
|
||||||
public static int text=0x7f070024;
|
public static int text=0x7f070025;
|
||||||
public static int tpParkingTimerTimePicker=0x7f07001a;
|
public static int tpParkingTimerTimePicker=0x7f07001b;
|
||||||
public static int triangle=0x7f070001;
|
public static int triangle=0x7f070001;
|
||||||
public static int tvAccuracy=0x7f070010;
|
public static int tvAccuracy=0x7f070010;
|
||||||
public static int tvAddress=0x7f070017;
|
public static int tvAddress=0x7f070018;
|
||||||
public static int tvBefore=0x7f07001f;
|
public static int tvBefore=0x7f070020;
|
||||||
public static int tvDistance=0x7f070003;
|
public static int tvDistance=0x7f070003;
|
||||||
public static int tvNotify1=0x7f07001d;
|
public static int tvNotify1=0x7f07001e;
|
||||||
public static int underline=0x7f070002;
|
public static int underline=0x7f070002;
|
||||||
}
|
}
|
||||||
public static final class integer {
|
public static final class integer {
|
||||||
|
|||||||
@@ -160,10 +160,6 @@ public class MapFragment extends Fragment implements GeoPointLocationListener, O
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// public MapView getMap() {
|
|
||||||
// return mMap.getMap();
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* loads saved settings from files
|
* loads saved settings from files
|
||||||
*
|
*
|
||||||
@@ -330,13 +326,11 @@ public class MapFragment extends Fragment implements GeoPointLocationListener, O
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
// mAccuracy.setText(GeoUtils.distanceToString((accuracy / 1E3), isMetric));
|
|
||||||
mHandler.sendMessage(mHandler.obtainMessage(ACCURACY, GeoUtils.distanceToString((accuracy / 1E3), isMetric)));
|
mHandler.sendMessage(mHandler.obtainMessage(ACCURACY, GeoUtils.distanceToString((accuracy / 1E3), isMetric)));
|
||||||
|
|
||||||
if (mCarPoint != null && point != null) {
|
if (mCarPoint != null && point != null) {
|
||||||
double distance = GeoUtils.distanceKm(point, mCarPoint);
|
double distance = GeoUtils.distanceKm(point, mCarPoint);
|
||||||
mHandler.sendMessage(mHandler.obtainMessage(DISTANCE, GeoUtils.distanceToString(distance, isMetric)));
|
mHandler.sendMessage(mHandler.obtainMessage(DISTANCE, GeoUtils.distanceToString(distance, isMetric)));
|
||||||
// mDistance.setText(GeoUtils.distanceToString(distance, isMetric));
|
|
||||||
|
|
||||||
// value is set in KM. if user has gone 30 feet from car app
|
// value is set in KM. if user has gone 30 feet from car app
|
||||||
// is set to check for arrival
|
// is set to check for arrival
|
||||||
@@ -384,6 +378,8 @@ public class MapFragment extends Fragment implements GeoPointLocationListener, O
|
|||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
if(mMap != null)
|
||||||
|
mMap.enableGPSProgess();
|
||||||
super.onResume();
|
super.onResume();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -405,20 +401,6 @@ public class MapFragment extends Fragment implements GeoPointLocationListener, O
|
|||||||
mMap.setDestination(mCarPoint);
|
mMap.setDestination(mCarPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * enables the GPS dialog
|
|
||||||
// *
|
|
||||||
// * @param b
|
|
||||||
// * @author ricky barrette
|
|
||||||
// */
|
|
||||||
// public void setGPSDialogEnabled(boolean b) {
|
|
||||||
// if (mMap != null)
|
|
||||||
// if (b)
|
|
||||||
// mMap.enableGPSDialog();
|
|
||||||
// else
|
|
||||||
// mMap.disableGPSDialog();
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up the UI handler. The UI handler will process messages from
|
* Sets up the UI handler. The UI handler will process messages from
|
||||||
* processing threads
|
* processing threads
|
||||||
@@ -513,8 +495,6 @@ public class MapFragment extends Fragment implements GeoPointLocationListener, O
|
|||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
}
|
}
|
||||||
// else
|
|
||||||
// isShowingBoth = false;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.e(TAG, "showBoth.mMap.getMap() is null");
|
Log.e(TAG, "showBoth.mMap.getMap() is null");
|
||||||
@@ -698,4 +678,10 @@ public class MapFragment extends Fragment implements GeoPointLocationListener, O
|
|||||||
mMap.getMap().setSatellite(!mMap.getMap().isSatellite());
|
mMap.getMap().setSatellite(!mMap.getMap().isSatellite());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onFirstFix(boolean isFirstFix) {
|
||||||
|
if(mMap != null)
|
||||||
|
if(isFirstFix)
|
||||||
|
mMap.disableGPSProgess();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user