Code example for Intent

Methods: getData

0
    startActivity(new Intent(Intent.ACTION_VIEW, contact));
  } 
 
  @Override 
  public Object onRetainNonConfigurationInstance() {
    return(contact);
  } 
   
  private void restoreMe() { 
    contact=null;
     
    if (getLastNonConfigurationInstance()!=null) {
      contact=(Uri)getLastNonConfigurationInstance();
    } 
  } 
}