Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Umair Ayub umairayub79

🎯
Focusing
View GitHub Profile
@umairayub79
umairayub79 / App Loader.java
Created Jul 22, 2019
Code for loading all apps (including system apps) in a listView
View App Loader.java
private PackageManager packageManager;
private ArrayList<String> packageNames;
private ArrayAdapter<String> adapter;
private ListView listView;
// Setup UI elements
listView = new ListView(this);
listView.setVerticalScrollBarEnabled(false);
listView.setId(android.R.id.list);