android: choose default launcher programmatically
问题 I want to pop up a dialog that lets the user choose a launcher to be launched with set as default option . I tried Intent home = new Intent(Intent.ACTION_DEFAULT); home.addCategory(Intent.CATEGORY_LAUNCHER); Intent chooser = Intent.createChooser(home, "Launcher"); context.startActivity(chooser); But the dialog popped by this does not have the option to set default. While the following code will not pop up the dialog if a default launcher is already set. Intent startMain = new Intent(Intent