分享界面ChooserActivity,继承自ResovlerActivity
private void rebuildList()方法中构建分享列表
在遍历currentResolveList处增加判断
if ("com.google.xxxto".equals(ai.applicationInfo.packageName)) {
try {
ApplicationInfo appInfo = ResolverActivity.this.mPm.getApplicationInfo(
"com.android.xxxxfrom", PackageManager.GET_ACTIVITIES );
if (mLauncherFromUid == appInfo.uid) {
currentResolveList.remove(i);
}
} catch (NameNotFoundException e) {}
}