Programmatically change the "Use by default for this action"
<p>I have the normal 'Phone' dialer and I have new 'Dialer' app. Now if I check the "Use by default for this action" and click on the 'Dialer' app then every time when I press the phone button the 'Dialer' app will be started automatically. But how can I change this in code ?</p>

<p>Where this preference is stored ?</p>

<p>And how is this mapped ? is this is mapped by an android action intent string ?</p>

<p>for example the Intent.ACTION_CALL is paired with some application for example the 'Dialer' app to be the default app that will be started every time the Intent.ACTION_CALL it is raised...</p>

<p>Thanks</p>

<p><img src="http://i.stack.imgur.com/KbH0E.png" alt="enter image description here"></p>
