private void showShareAvailableApps() {
final PackageManager packageManager = this.getApplicationContext().getPackageManager();
Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
List<ResolveInfo> list = packageManager.queryIntentActivities(intent,
PackageManager.MATCH_DEFAULT_ONLY);
for (ResolveInfo info : list) {
String appActivity = info.activityInfo.name;
String appPackageName = info.activityInfo.packageName;
String appName = info.loadLabel(packageManager).toString();
// Drawable drawable = info.activityInfo.loadIcon(packageManager);
Log.e("tttttttttttttttttt", "appName : " + appName + ", appActivity : " + appActivity
+ ", appPackageName : " + appPackageName);
}
}