Please suggest me how can I get current open application name, even if there is home screen on device then I will find \"Home screen is open\".
With this you can get the current application name
Resources appR = getApplicationContext().getResources(); CharSequence txt = appR.getText(appR.getIdentifier("app_name","string", getApplicationContext().getPackageName())); System.out.println(txt+" APp Name");