Back to project page sixgrid.
The source code is released under:
MIT License
If you think the Android project sixgrid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.pure.sixgrid.drawer; /*w w w . j a va2 s . c o m*/ import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; public class DrawerClickListener implements OnItemClickListener { Context mContext; AppsFragment.Pac[] pacsForAdapter; PackageManager pmForListener; public DrawerClickListener(Context c, AppsFragment.Pac[] pacs, PackageManager pm){ mContext = c; pacsForAdapter = pacs; pmForListener = pm; } @Override public void onItemClick(AdapterView<?> arg0, View arg1, int pos, long arg3) { Intent launchIntent = pmForListener.getLaunchIntentForPackage(pacsForAdapter[pos].name); mContext.startActivity(launchIntent); } }