Intent mainIntent = new Intent(Intent.MAIN_ACTION, null); mainIntent.addCategory(Intent.LAUNCHER_CATEGORY); mApps = getPackageManager().queryIntentActivities(mainIntent, 0);
super.onCreate(icicle); loadApps(); // do this in onresume? setContentView(R.layout.grid_1); mGrid = (GridView) findViewById(R.id.myGrid); mGrid.setAdapter(new AppsAdapter(this));