You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AppChecker mAppChecker = new AppChecker();
foreground_app_package_name = mAppChecker.getForegroundApp(mContext);
I am using the above code to get the foreground app name from service in background. The code works fine till 60 minutes and at 61 minutes it gives null value at foreground_app_package_name .
The text was updated successfully, but these errors were encountered:
AppChecker mAppChecker = new AppChecker();
foreground_app_package_name = mAppChecker.getForegroundApp(mContext);
The text was updated successfully, but these errors were encountered: