Rony Rony - 3 months ago 26
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
if (apps.get(0).topActivity.getPackageName().equals("com.android.launcher")

this somehow solved my problem only for default home

Comments