How to send object using getserializable extra method

252 views Asked by At

I am storing data in serializable object & sending it to other activity. But, I have difficulty in finding data in other activity.

Inside 2nd activity. Error here:

Intent in=getIntent.getserializableExtra("ob");
1

There are 1 answers

0
hemanth1488 On

Cast the data to your Serializable object.

`OBJECTCLASS obj=(OBJECTCLASS)getIntent.getserializableExtra("ob");`