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 9290179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:21:24+00:00 2026-06-18T20:21:24+00:00

I have 2 activities and I’m trying to send from Activity A to Activity

  • 0

I have 2 activities and I’m trying to send from Activity A to Activity B some huge objects that implements Serializable. The problem is the time taken by Android OS to serializate this objets. Is there any way to send parameters between Activities? I tryed sending to Application object and getting it in the next activity but I think this way is dirty…

  • 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-18T20:21:26+00:00Added an answer on June 18, 2026 at 8:21 pm

    Here are some alternate ideas you could use instead of passing huge amount of data by Serializable or Parcelable:

    • If you use this big chunk of data often you might consider using a Service. It would hold the data, process it and deliver when needed. Afterwards it can be terminated.
    • Another approach would be to put a reference to this big object in Application object (like this). “Global reference” doesn’t usually sound good, but this is recommended in some cases. Even further, if you still find it “dirty” you can use WeakReference and get rid of it as soon as it’s passed to second Activity and used by it.
    • Or, yet another way, you could consider doing all the work in singular Activity (without starting the second one) and just play with Views. If it’s possible for you of course.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two activities. In first I come to the second activity from first
I have 2 activities. The first activity is an activity that parses JSON data
I have 3 activities. I'm trying to get a string value from the first
I have 3 activities. I'm trying to get a string value from the first
I have two activities A and B, and from activity A, I click on
I have three activities: Activity A - Displays a list of data from a
I have 3 Activities...the first Activity have a button that start third Activity. The
I have four activities A,B,C,D. I am passing an text from activity A to
I have two Activities. Activity A gets a large amount of information from the
i have an activities that host fragments. pressing a button goes from fragment A

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.