title: How do I start same Activity with different text when click two different buttons?
body: <p>I'm building an app.When I click a button it will start an activity(eg.activity_sub) with text "Hello world",and when click on another button it will start the same activity but different text view "hi buddy".
  I don't put my button yet because I don't know how to continue.
  I'm using android studio.</p>
  
  <p>Here's my java code that gets txtfile from assets.</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      try {
          InputStream is = this.getAssets().open("assetstext.txt");
          int size = is.available();
          // Read the entire asset into a local byte buffer.
          byte[] buffer = new byte[size];
          is.read(buffer);
          is.close();
          // Convert the buffer into a string.
          String text = new String(buffer);
          // Finally stick the string into the text view.
          TextView tv = (TextView)findViewById(R.id.assetstext);
          tv.setText(text);
      } catch (IOException e) {
          // Should never happen!
          throw new RuntimeException(e);
      }
  }
  </code></pre>