Android从web加载快捷方式图标
这就是我现在获得图标的方式:Android从web加载快捷方式图标,android,android-intent,Android,Android Intent,这就是我现在获得图标的方式: Intent shortcutIntent = getShortcutIntent(); Intent addIntent = new Intent(); addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, mAppData.title); Inten
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);
我想从网络上加载图标。这有可能吗