title: Result Code is always 0 as result of uninstallation Intent in android
body: <p>From my Application I am trying to uninstalling an application by using the code </p>
  
  <pre><code>Intent uninstallIntent = new Intent(Intent.ACTION_DELETE);
  uninstallIntent.setData(Uri.parse("package:" +packageName));
  uninstallIntent.setAction(Intent.ACTION_VIEW);
  startActivityForResult(uninstallIntent,UNINSTALL_APPLICATION);
  </code></pre>
  
  <p>as per I am starting the activity for result I want to perform different actions on the basis of user's input like if  cancelled or clicked on <em>ok</em>.</p>
  
  <p>As I expected the result code of clicking ok will be <code>RESULT_OK</code> and clicking on cancel will be <code>RESULT_CANCEL</code>, but in actual in both cases I am getting <code>RESULT_CANCEL</code>.</p>
  
  <p>So how can I differentiate the user's input.</p>
  
  <p>Thanks!</p>