java - How to make launcher chooser pop up even the default launcher is set -
i doing launcher app now, may know how make launcher chooser pop default launcher set? know possible choose 2 default launchers in jelly bean or above version, teach me how that? thanks.
my code below:-
intent selector = new intent(); selector.setaction(intent.action_main); selector.addcategory(intent.category_home); selector.addflags( intent.flag_activity_clear_when_task_reset ); activity.startactivity(selector);
try following:
intent selector = new intent(); selector.setaction(intent.action_main); selector.addcategory(intent.category_home); selector.addflags( intent.flag_activity_clear_when_task_reset ); startactivity(intent.createchooser(selector, "select app:"));
hope helps!
Comments
Post a Comment