title: Reading users choice in dialog
body: <p>Is it possible to read users action in the dialog?</p>
  
  <p>Example: On button <code>bttn1</code> click, dialog opens. If user clicks <code>No</code> in the dialog, nothing happens. If user clicks <code>Yes</code>, then <code>bttn1</code> becomes unavailable and <code>bttn2</code> changes its state from <code>setEnabled(false)</code> to <code>setEnabled(true)</code>.</p>
  
  <p>General question but I am partially reffering to Bluetooth setup <a href="http://developer.android.com/guide/topics/connectivity/bluetooth.html#SettingUp" rel="nofollow noreferrer">documentation</a> where <code>startActivityForResult()</code> is used.</p>
  
  <p>As current answer provides, it is about using <code>startActivityForResult()</code> and <code>onActivityResult()</code> but I still have no idea how to implement this in such condition.</p>
  
  <p>I am not able to implement <a href="https://stackoverflow.com/questions/10407159/android-how-to-manage-start-activity-for-result">this</a> to overcome such problem.</p>