2022-10-02 23:06:56 +02:00
|
|
|
package android.app;
|
|
|
|
|
|
2023-09-19 23:11:56 +02:00
|
|
|
import android.content.Context;
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
import android.os.IBinder;
|
|
|
|
|
|
|
|
|
|
public abstract class Service extends Context {
|
|
|
|
|
|
2024-03-16 12:49:28 +01:00
|
|
|
public void onCreate() {
|
|
|
|
|
System.out.println("Service.onCreate() called");
|
|
|
|
|
}
|
2023-09-19 23:11:56 +02:00
|
|
|
|
2024-07-19 15:22:12 +02:00
|
|
|
public void onDestroy() {
|
|
|
|
|
System.out.println("Service.onDestroy() called");
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-19 23:11:56 +02:00
|
|
|
public abstract IBinder onBind(Intent intent);
|
|
|
|
|
|
2024-06-24 18:44:31 +02:00
|
|
|
public int onStartCommand(Intent intent, int flags, int startId) {
|
|
|
|
|
System.out.println("Service.onStartCommand(" + intent + ", " + flags + ", " + startId + ") called");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2022-10-02 23:06:56 +02:00
|
|
|
|
2023-09-21 22:49:36 +02:00
|
|
|
public void startForeground(int id, Notification notification) {
|
|
|
|
|
System.out.println("startForeground(" + id + ", " + notification + ") called");
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-16 12:49:28 +01:00
|
|
|
public void stopForeground(boolean remove) {
|
|
|
|
|
System.out.println("stopForeground(" + remove + ") called");
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-13 21:00:06 +02:00
|
|
|
public Application getApplication() {
|
|
|
|
|
return this_application;
|
|
|
|
|
}
|
2024-06-15 22:32:01 +02:00
|
|
|
|
|
|
|
|
public void stopSelf(int startId) {
|
|
|
|
|
System.out.println("Service.stopSelf(" + startId + ") called");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void stopSelf() {
|
|
|
|
|
System.out.println("Service.stopSelf() called");
|
|
|
|
|
}
|
2024-08-25 11:20:01 +02:00
|
|
|
|
|
|
|
|
public void attachBaseContext(Context newBase) {
|
|
|
|
|
System.out.println("Service.attachBaseContext(" + newBase + ") called");
|
|
|
|
|
}
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|