Added method sendLastKnownLocationToTelegram.
This commit is contained in:
parent
44a01332ae
commit
c65ead7bad
|
|
@ -120,6 +120,12 @@ public class LocationLoggingService extends Service implements LocationListener
|
|||
return locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
|
||||
}
|
||||
|
||||
public void sendLastKnownLocationToTelegram(){
|
||||
Location lastKnownLocation = getLastKnownLocation();
|
||||
this.lastLocation = lastKnownLocation;
|
||||
sendLocationToTelegram(lastKnownLocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
Log.d(TAG, "Service has been destroyed.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue