Reivewed all the similar question, and yet no result. I cannot pass one ojbect that implements parcelable from an intentService to an Activity. The Same code works fine when passing data from an activity to another activity. Even can pass ParcelableArrayListExtra also but not the parcelable Object. Its a requirment to pass the object in my project. Code is given below(Dont have right to publish whole code,and whole code is working except these lines) CODE: IntentService:
Intent action = new Intent(this, QuizActivity.class);
intent.putParcelableArrayListExtra("userList",name);
Random position = new Random();
int randomPosition =position.nextInt(3);
intent.putExtra("selectedUser",name.get(randomPosition));
action.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
SecondActivity:
List<User> userList= getIntent().getParcelableArrayListExtra(EXTRA_INSECTS);
Insect selected = getIntent().getExtras().getParcelable("selectedUser");