title: android pendingIntent cached on multiple calls to ACTION_EDIT contact after pressing Home Button
body: <p>I´ve got a HOMESCREEN WIDGET with a BUTTON. Here´s the action added to teh button:</p>
  
  <pre><code>Intent editContact = new Intent(Intent.ACTION_EDIT, ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, Long.valueOf(contactID)));
  
  editContact.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY|Intent.FLAG_ACTIVITY_NEW_TASK);
  
  PendingIntent pendingEditContact = PendingIntent.getActivity(rcvContext, appWidgetID, editContact, PendingIntent.FLAG_UPDATE_CURRENT);
  </code></pre>
  
  <p>Whenever the internal android activity for editing contact is left by either editing the contact or pressing the back key without editing, everything works fine and the activity is removed from the stack. Relaunching the activity from another widget correctly displays corresponding contact data to edit.</p>
  
  <p>If the contact is not edited and <strong>left by pressing the Home Button</strong> of the Android device, relaunching a different contact from another widget again replaces the previous contact data. <strong>Unfortunately, this happens for the second launch only.</strong> Any attempt greater than 2 (i.e. pressing the Home Button again without editing the contact) results in the activity holding the previous contact data to edit. Apparently, pending intents are cached. That is why <strong>PendingIntent.FLAG_UPDATE_CURRENT</strong> should update the intent as to which contact to edit but to no avail :-(</p>
  
  <p>I also had a got at the following:</p>
  
  <p>PENDING INTENT:</p>
  
  <pre><code>PendingIntent.FLAG_CANCEL_CURRENT;
  </code></pre>
  
  <p>ACTIVITY:</p>
  
  <pre><code>editContact.putExtra("random", System.currentTimeMillis());
  </code></pre>
  
  <p>I´d like your advice on solving this issue. Thanks a lot folks!</p>