这就是我现在获取图标的方式:
Intent shortcutIntent = getShortcutIntent();
Intent addIntent = new Intent();
addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, mAppData.title);
Intent.ShortcutIconResource shortcutIconResource = Intent.ShortcutIconResource.fromContext(MainApplication.getAppContext(), R.drawable.ic_launcher);
addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, shortcutIconResource);
addIntent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
MainApplication.getAppContext().sendBroadcast(addIntent);
我想从网上加载图标。这有可能吗?