0
gibt es eine Möglichkeit, eine Homescreen-Verknüpfung hinzufügen, ohne die Nachricht Toast, dass die Verknüpfung hinzugefügt wurde? Hier ist meine Methode, die die Abkürzung hinzufügt, aber es ist immer mit einem Toast.hinzufügen Startbildschirm Verknüpfung ohne Toast Nachricht
private void AddShortcut()
{
var shortcutIntent = new Intent(this, typeof(ActivityMain));
shortcutIntent.SetAction(Intent.ActionMain);
var iconResource = Intent.ShortcutIconResource.FromContext(this, Resource.Drawable.ruwicon);
var intent = new Intent();
intent.PutExtra(Intent.ExtraShortcutIntent, shortcutIntent);
intent.PutExtra(Intent.ExtraShortcutName, "My App");
intent.PutExtra(Intent.ExtraShortcutIconResource, iconResource);
intent.PutExtra("duplicate", false);
intent.SetAction("com.android.launcher.action.INSTALL_SHORTCUT");
SendBroadcast(intent);
}