I want to transfer the object from one activity to another .
in my first class I have put the following
Intent intenttt ;
Intent intentttt.putExtra("user_searchh", cur.toString());
here the cur is the object of Cursor. I want to transfer it to second class.
in my second class I have put following
Cursor c = (Cursor) getIntent().getSerializableExtra("user_searchh");
I tried to to run both the classes without the above code , it works properly .
But, when I place the above code , it prompts the force to close error.
In DDMS there is error like ... NulpointerException ... DirectCursorDriver.... etc..
I take teke reference from How to pass an object from one activity to another on Android
having 50 votes.
help me if possible .
thanks ...