title: Android SetNewPassword Intent returning RESULT_FIRST_USER
body: <p>I am starting up the <code>ActionSetNewPassword</code> action via an <code>Intent</code>. On return I am watching for <code>OK</code> and running some code or <code>CANCEL</code> and closing.</p>
  
  <p>This was working fine but now I am being returned <code>RESULT_FIRST_USER</code> rather than <code>OK</code> when I successfully deal with the action.</p>
  
  <p>Why would I be now being passed back <code>RESULT_FIRST_USER</code>? 
  What is that result code supposed to tell me?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am using Xamarin and MVVMCross to start the activity. This has been all working fine I would just like to know under what circumstances Android would send back <code>RESULT_FIRST_USER</code></p>
  
  <pre><code> Intent actionSetNewPasswordIntent =
         new Intent(DevicePolicyManager.ActionSetNewPassword);
  
   this.context.StartActivityForResult(
                   actionSetNewPasswordIntent, 
                   20);
  </code></pre>
  
  <p>In the Activity I am listening for the return like so</p>
  
  <pre><code>if (requestCode == 20)
  {
      if (resultCode == Result.Ok)
      {
          if (this.spm.CheckCompliance() != SecurityPolicyCompliance.Compliant)
          {
              // This should not happen as by now we have applied for Device Admin 
              // and sent them to SetNewPassword where they have not cancelled
              this.Finish();
          }
      }
      else if (resultCode == Result.Canceled)
      {
          // User backed away from changing password.
          this.Finish();
      }
  }
  else
  {
      base.OnActivityResult(requestCode, resultCode, data);
  }
  </code></pre>
  
  <p>Thanks</p>