|
|
@@ -798,7 +798,7 @@ public class MainActivity extends AppCompatActivity implements CustomJsonProcess
|
|
|
return;
|
|
|
}
|
|
|
switch (baseResponse.getType()) {
|
|
|
- case AidlConstants.TYPE_LOCATION:
|
|
|
+ /*case AidlConstants.TYPE_LOCATION:
|
|
|
AidlResponse<LocationInfo> aidlResponse = FastJsonUtils.fromJson(json,new TypeReference<AidlResponse<LocationInfo>>(LocationInfo.class){});
|
|
|
LocationInfo locationInfo = aidlResponse.data;
|
|
|
if (locationInfo != null) {
|
|
|
@@ -806,7 +806,7 @@ public class MainActivity extends AppCompatActivity implements CustomJsonProcess
|
|
|
MacSetSystemParameterSP(SYS_PARA_GPS_LONGITUDE,String.valueOf(locationInfo.longitude));
|
|
|
MacSetSystemParameterSP(SYS_PARA_GPS_LATITUDE,String.valueOf(locationInfo.latitude));
|
|
|
}
|
|
|
- break;
|
|
|
+ break;*/
|
|
|
case AidlConstants.TYPE_KIOSK_MODE:
|
|
|
|
|
|
case AidlConstants.TYPE_INSTALL:
|
|
|
@@ -947,9 +947,9 @@ public class MainActivity extends AppCompatActivity implements CustomJsonProcess
|
|
|
|
|
|
Location lastLocation = locationManager.getLastKnownLocation(provider);
|
|
|
if (lastLocation != null) {
|
|
|
- Log.d("GPS Location", "Use last location");
|
|
|
+ Log.d("GPS Location", "Got last location");
|
|
|
handleLocation(lastLocation);
|
|
|
- return;
|
|
|
+ //return;
|
|
|
}
|
|
|
|
|
|
Log.d("GPS Location", "Start GPS locating");
|