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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:08:24+00:00 2026-05-25T12:08:24+00:00

I have an Android application that communicates with a Jersey webservice using JSON. The

  • 0

I have an Android application that communicates with a Jersey webservice using JSON. The received data is stored in a SQLite database on the Android device.

According to DDMS, the heap size is around 6MB, with around 2MB free. However, the application ‘pauses’ (not asking new data from the webservice) after receiving some amount of data. Then I see the garbage collection being triggered and the application continues. Manually triggering System.gc() seems to have no effect, or even degrade the performance.

My question is: is the garbage collection the cause of the pausing, or is writing to the SQLite database on the Android device relatively slow?

update: Android version is 2.3.3

  • 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-25T12:08:26+00:00Added an answer on May 25, 2026 at 12:08 pm

    Writing to a SQLite database is slow, because file I/O is slow, because flash is slow. More specifically, SQLite transactions are slow, because transactions write data to flash, and flash is slow. If you are performing multiple SQL operations in rapid succession, consider wrapping them in your own transaction.

    Beyond that, use Traceview to identify where your time is being spent.

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

Sidebar

Related Questions

I have an Android application that I've been working on, and it's implemented using
I have android application that I need to debug using eclipse. When I right
I have an Android application that displays a list of names using checkboxes. I
I have an android application that pulls a list of videos stored in an
i have this android application that requires to load data from a remote server
i have an android application that handles a sql-lite database and i need to
I am writing an application that communicates using sockets. I have a server running
I have an android application that relies heavily on Json Web Services. so I
I have an Android application that creates a SQLite DB and populates it with
I have an android application that begins by downloading a large database to the

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.