I have two actions: NewTransferMyOwn.java and FromAccount.java
When I switch from NewTransferMyOwn.java to FromAccount.java, I write the code as follows
Intent i = new Intent(NewTransferMyOwn.this, FromAccount.class); startActivityForResult(i, FROM_ACCOUNT);
When I return from FromAccount.java to NewTransferMyOwn.java, I want to pass the complete object of the Statement class
I write code like
Statement st = ItemArray.get(arg2);//ItemArray is ArrayList<Statement>, arg2 is int Intent intent = new Intent(FromAccount.this,NewTransferMyOwn.class).putExtra("myCustomerObj",st);
I get an error as shown on putExtra,
Change to 'getIntExtra'
like me, st to int is called again, which is the problem, how can I pass the Statement object back to acitivity?
source share