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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:48:27+00:00 2026-05-26T02:48:27+00:00

Working on a project for caching. Would like to do it with file system

  • 0

Working on a project for caching. Would like to do it with file system on Android.
I know database is also a option but want to give try to file systems.

Making a object serializable in case of Android its very easy to use the ObjectOutputStream and ObjectInputStream to serialize and deserialize entrire arraylist of objects happens automatically.

It also allows passing of objects between two activities. However the load time of my application has increased by a ratio of 5 when reading a 250 node list.

I know parcelable also does the passing part and is Android’s way for serialization. However, anyone has ideas how to use parcelable along with ObjectOutputStream so that full utilization of the Android’s serialization can be used.

Also if anyone has ideas how to speed up serialization apart for readObject and writeObject please share. And by doing this how much of a difference can be achieved and is it advisable to do so.

Or is the database way the only option for caching in case of android. Not to forget pre-caching can also be achieved via db but we can?

  • 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-26T02:48:27+00:00Added an answer on May 26, 2026 at 2:48 am

    Don’t use parcels. Per the Android Documentation ( http://developer.android.com/reference/android/os/Parcel.html) :

    Parcel is not a general-purpose serialization mechanism. This class (and the corresponding Parcelable API for placing arbitrary objects into a Parcel) is designed as a high-performance IPC transport. As such, it is not appropriate to place any Parcel data in to persistent storage: changes in the underlying implementation of any of the data in the Parcel can render older data unreadable.

    Making an object implement the serializable interface is risky too because then you’re tied to that serialization format. If you change the object in the future, you’re going to have issues reading in objects that were serialized under the old regime.

    Using a database is probably your best option for caching things to disk.

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

Sidebar

Related Questions

While working a project tonight, I ended up using one .js resource file for
I am working on project -online file management where we have to tore file
I am working on a project where we'd like to pull content from one
I have a project that I have recently started working on seriously but had
The project I am currently working on has, in the checkout, an option to
I'm currently editing a working project with some experience on PHP. I know a
Working on a project with a setup like this: ASPX Page User Control 1
I'm a beginner to caching. I'm currently working on a small project with Django
I am working on a project that involves a type of caching to be
I'm trying to use declarative caching from the Spring Modules project. It's not working

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.