Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8269801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:21:10+00:00 2026-06-08T06:21:10+00:00

I usually use the interface Parcelable to pass data from one Activity to another.

  • 0

I usually use the interface Parcelable to pass data from one Activity to another. It is working fine if the data isn’t that much. However, there are cases where I have to pass a lot of data to an Activity. Marshalling of these data seems to happen without any error but unmarshalling results in an Error like this:

07-23 14:26:34.215: E/AndroidRuntime(29379): java.lang.OutOfMemoryError: java.lang.Object[] of length 1075971147 exceeds the VM limit

It seems that it is just too much data to get unmarshalled. A really Hackish solution (that I really don’t like) will be to give that special Activity a static Method to pass that data to it, looking for it at onCreate(). This would work at least for Activitys I have control over the source, but fails if I haven’t.

I wanna know if there are other acceptable attemts, to pass a bunch of data from one Activity to another. It would be really nice if I could reuse some code I already wrote for the Parcelable interface, but that is not an requirement

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:21:13+00:00Added an answer on June 8, 2026 at 6:21 am

    How about creating a global variable (like described here)? There was a time I was struggling with the same problem and in the end it was all I found working (even though I cannot say “global” appears like a “good practice”).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I usually use this line to import file from out of the current folder
I usually use ax.set_rasterized(True) to rasterize the figure so that it could handle transparency
I'm wondering how one can do that. Afaik there is BeanFactoryPostProcessor interface that let
Couch has a REST interface. This means that data-updates are exclusive to PUT calls.
I noticed that the generic IEnumerator<T> inherits from IDisposable, but the non-generic interface IEnumerator
If you instantiate a new HashSet, you usually use the Set interface to work
Usually i use SQL Server as database for my project, but one of my
I have a wizard style interface where I need to collect data from users.
I usually use a boolean 'firstTime' like this: in C++: bool firsTime = true;
I usually use Visual Studio Team System 2008 Source Control Explorer with TFS, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.