It is necessary that when a button is clicked on a button, a window opens with a choice of the default application. For example, as in the screen number 3.
After the application has been selected by default by the user, you need to somehow check which application they have chosen, and if not our application was chosen, determine it.
PS In my case, it is necessary that the user select the default application for SMS.
How to achieve this? Please provide sample code.