ich ein Problem mit Pick-Aktivität haben, habe ich dieses: Pop-upAndroid Pick-Aktivität Textfarbe
Textfarbe ist weiß und auch Hintergrund. Dieser Code ist i verwenden:
Bundle bundle = new Bundle();
ArrayList<String> shortcutNames = new ArrayList<String>();
shortcutNames.add(getString(R.string.group_applications));
bundle.putStringArrayList(Intent.EXTRA_SHORTCUT_NAME, shortcutNames);
ArrayList<ShortcutIconResource> shortcutIcons = new ArrayList<ShortcutIconResource>();
shortcutIcons.add(ShortcutIconResource.fromContext(this,
R.drawable.ic_launcher));
bundle.putParcelableArrayList(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, shortcutIcons);
Intent pickIntent = new Intent(Intent.ACTION_PICK_ACTIVITY);
pickIntent.putExtra(Intent.EXTRA_INTENT, new Intent(Intent.ACTION_CREATE_SHORTCUT));
pickIntent.putExtra(Intent.EXTRA_TITLE, getText(R.string.app_name));
pickIntent.putExtras(bundle);
startActivityForResult(pickIntent, 1);
Ich habe das gleiche Problem mit Android 4.2 Ich denke, ich werde Liste von mir implementieren. Sie können Elemente von PackageManager.queryIntentActivities() erhalten Für Android-Implementierung sehen Sie hier: https://github.com/android/platform_packages_apps_settings/blob/master/src/com/android/settings/ActivityPicker.java – Alex
Ja, und es ist immer noch gebrochen in 4.2.1. – soundmaven
Danke !!! Ich werde meinen Dialog implementieren – jaumard