Code example for Editable

Methods: clear, toString

0
		return true; 
	} 
 
	private void sendMessage() { 
		Editable editable = inputEdit.getText();
		String text = editable.toString();
		if (isEncrypt.isChecked()) {
			text = "************";
		} 
 
		editable.clear();
		Toast.makeText(this, text, Toast.LENGTH_SHORT).show();
 
		Intent intent = new Intent();
		intent.putExtra("message", text);
		intent.setClass(this, MessageActivity.class);
 
		startActivity(intent);
	} 
}