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

The Archive Base Latest Questions

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

I am trying to collect some location updates into an arraylist in an Android

  • 0

I am trying to collect some location updates into an arraylist in an Android map application. I would like to save the collected location updates for every minute into my local server. How can I do this. Is there a function in Android to do this?

  • 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:00:41+00:00Added an answer on June 11, 2026 at 10:00 am
    1. Use Service, which is like an Activity without any UI.

    2. Let Service run after every minute and take down the location updates in the form of Latitude and Longitude.

    3. Then use a Non-UI thread to store the location data in the DataBase, for eg: SQLite

    For service:

    http://developer.android.com/guide/components/services.html

    For creation of simple thread:

    Thread t = new Thread(new Runnable(){
    
       public void run(){
    
               // Here is the code that will do your job every minute.
    
               // Please use a while loop with a loop control factor,
    
               // and sleep mechanism to let your thread sleep for a minute.
    
              // for sleep, instead of using Thread.sleep(timeout) better use     
    
              //TimeUnit.SECONDS.sleep(timeout);
    
         }
      });
    
    
    t.start();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm trying to introduce some caching into my Asp.Net application. New data for
I am trying to collect some data from multiple subsets of a data set
I'm trying to collect some information from a Atom formatted feed and display it
I'm trying to collect an often used subset of GUI-Elements together into one Subclass,
I am trying to get some detailed performance information from an application my company
i am trying escape some data before it goes into my database, but i
I'm try to collect some information from the job tracker. For starters I'd like
We are trying to achieve is to collect fake gps tracks on some route
I am trying to debug a jnlp application. It get hanged after some scenario.
I am writing a service to collect location readings while my application is running

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.