Code example for AutoCompleteTextView

Methods: setText

0
     
    /** 
     * Clear all the UI fields in the main view. 
     */ 
    private void clearFields(){ 
       mLabelText.setText("");
 	   mMasterPasswordText.setText("");
    } 
     
    /** 
     * Generate the password base on the label and master password. 
     */ 
    private void generatePassword(){ 
       
      String label = mLabelText.getText().toString();
      String password = mMasterPasswordText.getText().toString();
      PasswordGenerator generator = new PasswordGenerator(label,password);
      mPasswordText = generator.generate();
       
      updateDb(label);
    }