title: Android - Get result from change default SMS app dialog
body: <p>I am working on restoring SMS on KITKAT. Referring to this <a href="http://android-developers.blogspot.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html" rel="noreferrer">article</a> I have added the things which are required to set my app as default app for SMS. After adding all required things in manifest file I have write the following code:</p>
  
  <pre><code>if (android.os.Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.KITKAT)
  {
      mDefaultSmsApp = Telephony.Sms.getDefaultSmsPackage(mContext);
      Intent intent = new Intent(Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT);
      intent.putExtra(Telephony.Sms.Intents.EXTRA_PACKAGE_NAME, mContext.getPackageName());
      mContext.startActivity(intent);
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/nb0fJ.jpg" alt="enter image description here"></p>
  
  <p>The above code shows this dialog but I am unable to get the result from this activity/dialog either user clicked on Yes or No because I want to add listener or get any code which should represent that the user clicked on these buttons.
  Thanks.</p>