Added Service.onTimeout

This commit is contained in:
M66B
2024-04-11 07:50:39 +02:00
parent c5099952bb
commit 9b317defe5
3 changed files with 18 additions and 0 deletions

View File

@@ -72,6 +72,12 @@ public class ServiceExternal extends ServiceBase {
startForeground(NotificationHelper.NOTIFICATION_EXTERNAL, getNotification());
}
@Override
public void onTimeout(int startId) {
Log.e(new Throwable("onTimeout"));
stopSelf(startId);
}
@Override
public void onDestroy() {
Log.i("Service external destroy");