title: Transfer data from one screen to another on android eclipse
body: <p>Hi am newbie to java and android.</p>
  
  <p>Assume function <code>demo()</code> from the screenone is going to display some values on <code>Textview</code> which is on the same screen(screenone).</p>
  
  <p>But i need to display that resultant value to the next screen ie.(screen two)</p>
  
  <pre><code>public void demo(){
  {
   .....
   .....
  }
  </code></pre>
  
  <hr>
  
  <p>So i have included these line to </p>
  
  <p><strong>screenoneActivity.java</strong></p>
  
  <pre><code>Intent nextScreen = new Intent(getApplicationContext(), SecondtwoActivity.class);
  nextScreen.putExtra("","");
  startActivity(nextScreen);
  demo();
  </code></pre>
  
  <p><strong>ScreentwoActivity.java</strong></p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) 
  {
  
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.main1);
  
      TextView txtName = (TextView) findViewById(R.id.textView1);
  
      Intent i = getIntent();
  
      txtName.setText(name);
  </code></pre>
  
  <p>I did these things so far.I don't know how to do transfer data from <code>demo()</code> function to the next screen.</p>
  
  <p>Can anyone give me clues or  ideas to achieve this.</p>
  
  <p>Thanks a lot!..</p>