This commit is contained in:
14Sandee
2023-12-01 16:49:13 +05:30
parent d382c7ae2e
commit 303b663f7b
4 changed files with 8 additions and 12 deletions

View File

@@ -6,13 +6,13 @@
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="RZCW41EJRPN" />
<type value="VIRTUAL_DEVICE_PATH" />
<value value="$USER_HOME$/.android/avd/6.7_Horizontal_Fold-in_API_34.avd" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-11-30T14:15:44.728984Z" />
<timeTargetWasSelectedWithDropDown value="2023-12-01T10:15:23.925877Z" />
<targetsSelectedWithDialog>
<Target>
<type value="QUICK_BOOT_TARGET" />

View File

@@ -169,7 +169,7 @@ public class CgGeoFencingActivity extends AppCompatActivity implements OnMapRead
SocketHelper.getInstance().removeLocationUpdateListener(careGiverData.patientId + "");
}
SocketHelper.getInstance().closeConnection();
// SocketHelper.getInstance().closeConnection();
}
private void establishSocketConnection() {

View File

@@ -29,6 +29,8 @@ public class LocationService extends Service implements LocationClient.DefaultLo
public static final int LOCATION_INTERVAL_BASE_TIME = 25 * 1000;
private static final int LOCATION_UPDATES_NOTIFICATION_ID = 112;
private DefaultLocationClient locationClient;
@Override
@@ -83,8 +85,8 @@ public class LocationService extends Service implements LocationClient.DefaultLo
// do nothing
}
startForeground(1, notification);
notificationManager.notify(1, notification);
startForeground(LOCATION_UPDATES_NOTIFICATION_ID, notification);
notificationManager.notify(LOCATION_UPDATES_NOTIFICATION_ID, notification);
}
@Override

View File

@@ -114,12 +114,6 @@ public class DashBoardActivity extends AppCompatActivity implements CgHomeContra
super.attachBaseContext(newBase);
}
@Override
protected void onDestroy() {
super.onDestroy();
SocketHelper.getInstance().closeConnection();
}
private void setGeofenceAndLocationUpdates() {
// retrieving geofence
viewModel.getGeoFenceDetails(AppUtil.getPatientUid(this) + "",