I am utilizing the follow class, which I have as an object: http://pastebin.com/rKmtbDgF
And I am trying to pass it across using:
Intent booklist = new Intent(getBaseContext(), BookList.class);
Bundle bundle = new Bundle();
bundle.putParcelable("imageManager", (Parcelable) im);
booklist.putExtras(bundle);
booklist.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(booklist);
And I am trying to receive it using:
ImageManager im = (ImageManager) getIntent().getExtras().getParcelable("imageManager");
I am getting the following error:
java.lang.ClassCastException: com.example.example.ImageManager