Getting Value in Bundle but when placed that bundle value in string it is showing null value.here is my code:
Activity:1
public void btnDeposite(View v)
{
s1 = e1.getText().toString();
amt1 = Integer.parseInt(s1);
Intent i =new Intent(this,Transfer.class);
i.putExtra("depositeAmount", amt1);
startActivity(i);
}
Activity:2
//in onCreate()
b = getIntent().getExtras();
s1 = b.getString("depositeAmount");