public void onPass(View v)
{
String sn1=et1.getText().toString();
String sn2=et2.getText().toString();
int i1=Integer.parseInt(sn1);
int i2=Integer.parseInt(sn2);
Intent i=new Intent(this,Act2.class);
i.putExtra("k1",i1 );
i.putExtra("k2", i2);
startActivity(i);
}
logcat :
E/AndroidRuntime(671): Caused by: java.lang.NumberFormatException: unable to parse '20 ' as integer