This is my main activity and im passing a string strname
Intent i = new Intent(getApplicationContext(),newpage.class);
i.putExtra("firstname", strname);
startActivity(i);
this is the new page where it will show this activity
TextView uname1 = (TextView) findViewById(R.id.textView15);
uname1.setText(getIntent().getExtras().getString("firstname"));
my application closes when i press submit..