error: cannot find symbol import android.app.ActivityTaskManager;

563 Views Asked by At

I am trying to use ActivityTaskManager in Qt for Android, but I cannot import the package as below:

import android.app.ActivityTaskManager;

Error message:

TestJava.java:5: error: cannot find symbol
import android.app.ActivityTaskManager;
                  ^
  symbol:   class ActivityTaskManager
  location: package android.app

Android SDK: 29, JDK 14

1

There are 1 best solutions below

0
On

You can't use android.app.ActivityTaskManager directly so to use this please use reflection api's