Android Utililty Methods Activity Package Get

List of utility methods to do Activity Package Get

Description

The list of methods to do Activity Package Get are organized into topic(s).

Method

StringgetRuningPkg(Context con)
get Runing Pkg
ActivityManager am = (ActivityManager) con
        .getSystemService(Context.ACTIVITY_SERVICE);
return am.getRunningTasks(1).get(0).topActivity.getPackageName();