Rony Rony - 1 year ago 104
Android Question

How to check If I am currently on home screen

Is this possible to check if currently my app is in background and home screen is launched

Answer Source
if (apps.get(0).topActivity.getPackageName().equals("com.android.launcher")

this somehow solved my problem only for default home