File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Parcelable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Parcelable " Watch "Parcelable " New topic


Monica Salvador

Joined: Feb 24, 2011
Posts: 23
I tried using the Parcelable interface for all of my custom classes. But there are StackOverflow errors when I pass a bitmap/any of those parcelables through the intent. Here's a sample code for one of the classes.

The error that is showing in the LogCat is here:

I don't know what I did wrong. please help me.
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Would you please post the stack trace here so we can get a better info?
Monica Salvador

Joined: Feb 24, 2011
Posts: 23
The problem's now solved. It had a StackOverflow because I was sending many images through an intent.
Monu Tripathi

Joined: Oct 12, 2008
Posts: 1369

As an aside, it is not advisable to pass large Bitmaps in Intent extras. You will run into all sort of issues.

[List of FAQs] | [Android FAQ] | [Samuh Varta]
jQuery in Action, 3rd edition
subject: Parcelable
It's not a secret anymore!