Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); mApps = getPackageManager().queryIntentActivities(mainIntent, 0);
super.onCreate(savedInstanceState); loadApps(); setContentView(R.layout.layout_animation_5); GridView grid = (GridView) findViewById(R.id.grid); grid.setAdapter(new AppsAdapter());