aspose file tools*
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
Author

Parcelable

Monica Salvador
Greenhorn

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
Bartender

Joined: Nov 08, 2003
Posts: 3479

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

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
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parcelable