Is possible have only the name of running application and not the package name? I have this code now:
ActivityManager am = (ActivityManager) getSystemService(Activity.ACTIVITY_SERVICE);
List<RunningAppProcessInfo> processes = am.getRunningAppProcesses();
if (processes != null){
for (int i=0; i<processes.size(); i++){
RunningAppProcessInfo temp = processes.get(i);
String pName = temp.processName;
Log.d("Running process: ", pName);
}
}
But it returns the package name like: com.android.camera
. I need only camera
or for example Nova launcher
.