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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:48:45+00:00 2026-06-15T08:48:45+00:00

I am trying to send a custom object from one activity to another activity,

  • 0

I am trying to send a custom object from one activity to another activity, but it’s crashing when I call the start activity.

Below is the snippet I used.

My Activity implements Serializable

ArrayList<CUSTOM_OBJECT> Cus_Obje_arraylist = new ArrayList<CUSTOM_OBJECT>();

Here is my intent :

Intent inte = new Intent(getApplicationContext(), ListActivity.class); `
inte.putExtra("list",Cus_Obje_arraylist);`
startActivity(inte);

Please let me know why it’s crashing or what alternate way I can use?

  • 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-15T08:48:46+00:00Added an answer on June 15, 2026 at 8:48 am

    I can give a suggestion. I do this in my project.

    1.Implement a singleton class as the bridge to pass object. (Hopefully you know what’s singleton, I you don’t, add comment to tell me.

    class BridgeClass {
        private BridgeClass() {}
    
        static BridgeClass obj = nil;
        public BridgeClass instance() {
             if (obj == nil) obj = new BridgeClass();
             return obj;
        }
    
        public ArrayList<CUSTOM_OBJECT> cache;
     }
    

    2.In the from activity,

    BridgeClass.instance().cache = Cus_Obje_arraylist;
    

    3.Then in the to activity, you can get it from the bridge class.

    ArrayList<CUSTOM_OBJECT> Cus_Obje_arraylist = BridgeClass.instance().cache;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to send a custom HTML object from my ASP 2.0 website to
I'm trying to send an object of a custom class through my asmx webservice
I've been trying to send packets to a minecraft server from my custom Cocoa
I am trying to send a nsmutablearray from one navigational embedded view controller to
I'm trying to send an email with custom headers but for some reason they
I'm trying to create a complex custom NSControl that must be able to send
I am trying to create a custom object in AS3 to pass information to
I'm trying to send via MFMailComposeViewController a custom url scheme so that the receipient
On Android, I am trying to send a custom broadcast message using a custom
I'm trying to send data from client-side to server-side (asp.net c#), if you really

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.