How to create a new activity and then display text in it with android programming
<p>I managed to have a button and then when I click on it, I go to a new activity that is called "TUTORIALONE"</p>

<p>and then I want to display some text in this new activity</p>

<p>so I have something like this</p>

<pre><code>   Button b = (Button) findViewById(R.id.tutorial1);
        b.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {

            startActivity(new Intent("my.android.TUTORIALONE"));
            TextView tv = (TextView)findViewById(R.id.tutorial1);
                    tv.setText("this is some text);

        }
    });
</code></pre>

<p>the problem is that it first displays the text on my button, and then it shows me the new activity, how would I achieve displaying the text on the new activity?</p>

<p>thanks in advance</p>
