i am trying to pass the gson serialised object to intent by using the below code
intent.putExtra(\"com.example\", vo); // vo is the gson
No you are using it in the wrong way.
Put the object in the intent as:
Gson gson = new Gson();
Intent intent = new Intent(Source.this, Target.class);
intent.putExtra("obj", gson.toJson(yourObject));
and get the object in another activity as:
Gson gson = new Gson();
String strObj = getIntent().getStringExtra("obj");
SourceObject obj = gson.fromJson(strObj, SourceObject.class);