title: How can i send information to main activity from fragment?
body: <p>How can I send MainActivity from the fragment, just like this:</p>
  
  <p>I have a text on the fragment but it always different, for example:</p>
  
  <pre><code>byte[] bytes = editText.getText().toString().getBytes(Charset.defaultCharset());
  send(bytes); // It has to send to main MainActivity
  </code></pre>
  
  <p>How can I do this ?</p>