multiple additions and fixes for the Java APIs

Stuff needed for WhatsApp support
This commit is contained in:
Julian Winkler
2024-06-24 18:44:31 +02:00
committed by Mis012
parent ef77bb287a
commit 3c5a21357d
53 changed files with 357 additions and 43 deletions

View File

@@ -16,7 +16,10 @@ public abstract class Service extends Context {
public abstract IBinder onBind(Intent intent);
public abstract int onStartCommand(Intent intent, int flags, int startId);
public int onStartCommand(Intent intent, int flags, int startId) {
System.out.println("Service.onStartCommand(" + intent + ", " + flags + ", " + startId + ") called");
return 0;
}
public void startForeground(int id, Notification notification) {
System.out.println("startForeground(" + id + ", " + notification + ") called");