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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:55:09+00:00 2026-05-24T00:55:09+00:00

I am working on an idea for an app and want to really understand

  • 0

I am working on an idea for an app and want to really understand what role threads and services will play in my application. In a very simple app, I want a list view to be updated once a week from some sort of database. Ballpark 100 items. So from what I think i understand so far, I will have an activity which will have a UI consisting of a list view. I will then have a service. In this service I will have a thread, and this thread will be in charge of downloading. The service is there simply to make sure the download can continue if the app is paused or stopped. Then I can use a message/runnable/asyncTask to send this data over to my activity/UI from my thread. Am I right in thinking this?

  • 1 1 Answer
  • 1 View
  • 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-24T00:55:10+00:00Added an answer on May 24, 2026 at 12:55 am

    I think you missed a BroasdCastReceiver:

    I want a list view to be updated once a week

    For this task you’ll need to install an Alarm. Alarms usually start Broadcast receivers, to be sure that phone isn’t sleeping. This BroadcastReceiver will have to start your service. I know it sounds complicated, but its quite ok to implement 🙂

    Here are my comments for the remaining questions:

    I will have an activity which will have a UI consisting of a list view

    Correct

    I will then have a service. In this service I will have a thread, and this thread will be in charge of downloading.

    Thats also correct.

    Then I can use a message/runnable/asyncTask to send this data over to my activity/UI from my thread.

    That will maybe fail, because your service doesn’t know if the main activity is running. Whats about writing the lists data into a shared file, both service and activity can access?

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

Sidebar

Related Questions

Me and My friend had an app idea. I have been working on the
I'm working through an idea for an iphone app. One of the tech requirements
Im working on a small application to try out an idea that I have.
I'm working on a REST API and I really like the idea of using
I'm working on some iPhone app and I want to make a bearing, an
I'm working on a new app that I want to be universal for the
I'm working on an application which list movies from a database. Except for general
I am working on an app and i want it to be such that
Currently I'm working on an app for Android phones. We want to detect features
I'm working with 2 spinner in my app, and I want to do this

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.