アンドロイドのアプリケーションのショートカットを作成し、ホーム画面の特定の位置に配置する必要があります。ホーム画面にアンドロイドアプリのショートカットの位置
私は中の特定の位置のショートカットを置くことができるように、私は上記のコードに追加することができますどのような以下のコード -
Intent shortcutIntent = new Intent(getApplicationContext(), MainActivity.class);
shortcutIntent.setAction(Intent.ACTION_MAIN);
Intent addIntent = new Intent("com.android.launcher.action.INSTALL_SHORTCUT");
addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, "customizeScreenLayout");
addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(getApplicationContext(), R.mipmap.ic_launcher));
addIntent.putExtra("duplicate", false); //may it's already there so don't duplicate
getApplicationContext().sendBroadcast(addIntent);
することにより、アプリケーションのショートカットを作成するには、成功したことができますよホーム画面(つまり、特定のx、y座標)?