Android Intent defaults - detect and clear
问题 Is there a way to detect that a phone has a default application chosen for an intent such as android.intent.action.SEND ? Is there a way to clear the default application via code? I'd like to give the user an option to remove the default or at least show a screen telling them how to do it manually, if I can detect it. 回答1: Take a look at PackageManager. With it, you can determine how an Intent will be handled with resolveActivity(intent). It looks like the method for clearing the preference