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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:53:44+00:00 2026-05-18T02:53:44+00:00

My app makes several calls to getFromLocationName from the android.location.Geocoder; class, this is currently

  • 0

My app makes several calls to getFromLocationName from the android.location.Geocoder; class, this is currently handled in my activity which also displays some data depedant on the results of that call.

This can be quite slow, for example before the activity can load it first has to complete the various calls, and that is reliant on a network connection.

Once I have the results, I don’t really need to refresh that (I mean how often do locations and geo coordinates change?)

My question : How can I best avoid having to query for this data each time my app runs. Should I do something with a service that loads them all on startup? (could be quite slow if it has to query 50+ times). OR should I make the call, store results in SQL, then only query next time if I don’t currently hold the results?

  • 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-18T02:53:44+00:00Added an answer on May 18, 2026 at 2:53 am

    If you want to quickly cache it, I would recommend storing the most recent results in a SQLite database. You could probably even get away with using the PreferenceManager for quick storage if you don’t need the database for anything else. Just store the latest co-ordinates and the datetime, then check to see if the datetime has expired after X minutes or X hours (if that’s what you’re wanting to do).

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

Sidebar

Related Questions

I want to create an iPhone app which makes calls to a web service.
In my app, I have deal with several different parameters, which derive from IParameter
I am working on a web app which makes use of a 3rd party
I am planning to develop an iphone app which makes use of image filters
I have this method in App Delegate that makes a window and content view
I'm creating an android app which will call a method which parses the selected
I'me currently developing a silverlight application. In this application, I've an exception handler which
I have a settings bundle in an iPhone app which has several subtle variant
I'm currently working on a web app that makes heavy use of JSF and
I'm working on an app that makes several Http Request to a RESTFULL web

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.