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

  • Home
  • SEARCH
  • 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 8537241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:51:15+00:00 2026-06-11T10:51:15+00:00

I am developing an application where I need to handle some data during the

  • 0

I am developing an application where I need to handle some data during the Application session. I do NOT need the data after application is killed or user manually logs out of the application.

I am using POJOs to save the data. POJOs are like Accounts, Users, Campuses, etc. I get all these data in the form of JSON from REST API calls.

As I am fairly new Android development, I am trying to understand which storage approach is recommended in this scenario. (SQLite, SharedPreferences, ApplicationContext, Bundles, ArrayList, Maps, etc)

Performance is important and searches are performed on this data during the user session.

I would need to construct JSON objects often and post back to API.

Any ideas?

  • 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-11T10:51:16+00:00Added an answer on June 11, 2026 at 10:51 am

    Place data on Application

    if you don’t need to persist your data and its lifecycle is short you might want to create some subclass of Application to hold it. It is the way of having some in-memory global data in the Android Platform – > How-to?

    Place data on in memory SQLite table/database

    Or you might want some in-memory SQLite tables if this will help you to query the data. In memory tables are also possible in Android. How-to?

    Considerations

    First method may give you the best performance. All data is on memory, so it is easy to access. But if the data has a very complex structure and queries are complex, you might wanna use SQLite to make querying data easier data. Performance will depend on how much is complex your data and queries. Performance will still be quite good because things are on memory.

    But you must be careful. If you end up using too much memory you are going to make your application more likely to be killed by Android framework. And your data will be lost. (5MB may be okay, 10MB might be too much. You will have to test to see what happens.)

    If memory pressure is high then you should offload to disk. Performance will be worse, specially when storage is almost full.In that case access may be pretty slow. The simplest way to store and retrieve data is SharedPreferences. You could write you JSON as a String preference. Again if data is too complex and querying it like a database is handy, you could use SQLite.

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

Sidebar

Related Questions

I am developing a large application and i need encryption when a data is
I am developing an application which need to handle a massive amount of REST
i need some advice. I am developing an iPhone application (later for Android also)
I need to implement some sort of data locking in a Flex application I'm
I am developing an iOS application where need to do some stuff when I
I am currently developing an application and I need to be able when pressing
I am developing an application were I need to transform XML documents that look
iam developing one application.In that i need to get the music files from the
iam developing one application.In that i need to get the how many music files
I am developing an android application and i need to read words from 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.