@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setupLayout(R.layout.activity_app_listing, "Show Java"); PackageLoadDialog = new ProgressDialog(this); PackageLoadDialog.setIndeterminate(false); PackageLoadDialog.setCancelable(false); PackageLoadDialog.setInverseBackgroundForced(false); PackageLoadDialog.setCanceledOnTouchOutside(false); PackageLoadDialog.setMessage("Loading installed applications..."); listView = (ListView) findViewById(R.id.list); PackageLoadDialog.show(); ApplicationLoader runner = new ApplicationLoader(); runner.execute(); }