daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private ArrayList<String> getApplicationNames(Context context){
  2.     ArrayList<String> nameOfRunningApps = new ArrayList<>();
  3.     List<ApplicationInfo> runningApplications = context.getPackageManager().getInstalledApplications(PackageManager.GET_META_DATA);
  4.  
  5.     for(ApplicationInfo applicationInfo: runningApplications){
  6.         nameOfRunningApps.add(applicationInfo.name);
  7.     }
  8.  
  9.     return nameOfRunningApps;
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top