Files
android_translation_layer/src/api-impl/android/app/Service.java

29 lines
705 B
Java
Raw Normal View History

package android.app;
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");
}
public abstract IBinder onBind(Intent intent);
public abstract int onStartCommand(Intent intent, int flags, int startId);
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;
}
}