Ho un problema con l'attività di prelievo, ho questo popup:Android l'attività di prelievo colore del testo
Colore del testo è bianco e lo sfondo troppo. Questo codice è che uso:
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);
Ho lo stesso problema con Android 4.2 Penso che implementerò la lista da solo. È possibile ottenere articoli da PackageManager.queryIntentActivities() Per l'implementazione di Android, fare clic qui: https://github.com/android/platform_packages_apps_settings/blob/master/src/com/android/settings/ActivityPicker.java – Alex
Sì, ed è ancora descritto in 4.2.1. – soundmaven
Grazie !!! Implementerò la mia finestra di dialogo – jaumard