IntelliJ Java IDE
The moose likes Android and the fly likes Parcelable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply 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: 3334

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: 1365

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] | [My Blog] | [Samuh Varta]
 
IntelliJ Java IDE
 
subject: Parcelable
 
Threads others viewed
JTable repaint issue
Get byte[] of image
Retrieve Node of tree in next page using jsp, struts tiles, Dojo
Sort by price and sort by provence
Filtering Result Sets based on selectable links (a href:)
Two Laptop Bag