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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:44:39+00:00 2026-05-22T12:44:39+00:00

My app queries a service using an external library in the form of a

  • 0

My app queries a service using an external library in the form of a JAR file. When I query this service, I get back a List of objects (object is used generically, not Object), which do not implement Parcelable in their current form. I need to send one of these objects between activities, so I am assuming that I need to somehow make them implement Parcelable. However, I’m not sure how to do so if they are not my objects, and all the tutorials I’ve found online seem to only deal with objects that the author created for his own project.

Any help would be greatly appreciated. Let me know if I need to clarify something.

  • 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-05-22T12:44:40+00:00Added an answer on May 22, 2026 at 12:44 pm

    Another alternative would be to use your Application to store these objects. Simple subclass Application, make it a singleton and declare it in your Manifest.xml

    public class MyApplication extends Application {
        private static final MyApplication instance;
    
        public static MyApplication getInstace() {
            return instance;
        }
    
        public void onCreate() {
            instance = this;
        }
    
        private MyObject myObj;
    
        public MyObject getMyObject() {
            return this.myObj;
        }
    
        public void setMyObject(MyObject myObj) {
            this.myObj = myObj;
        }
    }
    

    Then later on you can store it:

    MyApplication.getInstance().setMyObject(anObject);
    

    And recover it:

    MyObject anObject = MyApplication.getInstance().getMyObject();
    

    Remember that:

    1. Declare the MyApplication class as the Application in the Manifest.xml
    2. If your process is killed or exited, then your data won’t be available anymore.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm executing some complex queries in my app by hand via PDO, using $pdo
We are using octopus in our rails app to forward read queries directly to
In CodeIgniter I would do: print_r ($this->db->queries); In Yii I tried: print_r (Yii::app()->db) But
I'm making a product review service using Google App Engine, and I'm wondering about
I am writing a proxy service for caching the queries that my mobile app
I'm writing a silverlight app that queries a web service to populate a tree
I have an app that queries the google calendar instances and events API in
My ASP.NET (3.5) app allows users to run some complex queries that can take
app.get('/', function (req, res) { res.render('home.jade', { results: req.session.value }); }); What i would
I have an internal website that is using integrated windows authentication and this website

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.