Track the launch of a third-party application
问题 Is it possible to track the launch of a third-party application on the device? Maybe the android sends a broadcast when the applications are launched. UPDATE public class ServiceAppControl extends IntentService { private boolean serviceStarted = true; public ServiceAppControl() { super("ServiceAppControl"); } @Override protected void onHandleIntent(@Nullable Intent intent) { while (serviceStarted){ String appIsForeground = isAppOnForeground(getBaseContext()); Log.d(AppGlobal.LOG_TAG,