Write below code in onCreate()
method of your activity file to get data from intent.
Bundle bdl = getIntent().getExtras();
String mBankName = bdl.getString("bank");
int mAmount = bdl.getInt("amount");
BankName.setText(mBankName);
BalanceAmount.setText(String.valueOf(mAmount));
solved Android : using same Layout for EDIT and ADD NEW – Error in ADD? [closed]