foregroundappchecker icon indicating copy to clipboard operation
foregroundappchecker copied to clipboard

Foreground application detection library for android.

Results 10 foregroundappchecker issues
Sort by recently updated
recently updated
newest added

I am trying the sample on my android app I try using this ``` AppChecker appChecker = new AppChecker(); String packageName = appChecker.getForegroundApp(ctx); ``` I tried making a context ctx...

Do you have a timeline on this? I am curious to know so I can optimize my app that is still in development.

The way you start service is killed by OS after 20 seconds Please have a lecture: https://developer.android.com/about/versions/oreo/background Use `startForegroundService()` method instead of `startService().` ``` if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { ctx.startForeground(NOTIFICATION_ID,...

I would ask you to migrate the library and sample app to Android Studio 3.5.1 The project is so old :( and thank you for understanding

Hi guys, I have this kind of problem in some devices with android version 5.1 - 5.1.1 (( ![2018-06-15 12 28 00](https://user-images.githubusercontent.com/33349723/41453439-9935754c-7097-11e8-9463-32e45e60aa7d.png)

hello, thanks for the class. look very simple to use. I just want to ask, i cannot use sdk 26 - max 25, there is any way to use this...

``` AppChecker appChecker = new AppChecker(); appChecker.whenAny(new AppChecker.Listener() { @Override public void onForeground(String packageName) { Log.d("foreground: ", "" + packageName); } }).timeout(1000) ``` packageName always give me null. Im calling...

I am using this snippet of yours inside of a service, but I always get `null` as a package name. Testing on Google Pixel, Android version 7.1 ``` AppChecker appChecker...

Android recommended to remove jcenter library if I am going to do that I am not able to download your dependency

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...