Code example for Bundle

Methods: getString

0
   
  private void restoreMe(Bundle state) {
    contact=null;
     
    if (state!=null) {
      String contactUri=state.getString("contact");
       
      if (contactUri!=null) {
        contact=Uri.parse(contactUri);
      } 
    } 
  } 
} 
Experience pair programming with AI  Get Codota for Java