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

The Archive Base Latest Questions

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

I have a service that i retrieve 7 URL’s. Oncei retrieve the URLs from

  • 0

I have a service that i retrieve 7 URL’s.

Oncei retrieve the URLs from the service, i want to send a broadcast with the URL stored as an extra. i want to send a broadcast when the images are finished downloading to the main activity to refresh my BaseAdapter. My Service will be the one to send the broadcasts and my Activity will be the one with the receiver.

The problem is i am downloading the Strings from a server. The MainActivity needs these before it starts.

What could i do to by time while the service downloads the Strings?

Also i thought about running tha downloading of the Strings in my main activity in an asynctask but i only want the Strings to be checked and downloaded once a week.

Is my solution the best? Could some one give me an example of how i would implement this. I am familiar with broadcast recievers. just dont know how i would use it for this particular project.

  • 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-26T01:18:54+00:00Added an answer on May 26, 2026 at 1:18 am

    Instantiate a BroadcastReceiver inside your activity’s onCreate() method and register the receiver inside the activity’s onStart() method.
    Ensure that you unregister the receiver in the activities onPause() or onStop() methods.
    Register the receiver again in onResume().

    For more details take a look at this

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

Sidebar

Related Questions

I have a service that is retrieving URL's from a remote server for a
I have a WCF service that processes some messages. I use EntityFramework to retrieve
I have a method that calls a service to retrieve an instance of an
I have a python script that retrieves information from a web service and then
I have an app that executes and displays reports from SSRS retrieved through URL
I have a WCF client that download content from the server. the service contract
I have a WCF service method that expects an object and then retrieves its
I have a Service that sends an Intent to my Activity every 0.1 seconds.
I have a service that use the tcp binding and this services allows to
I have a service that I would like it to become single instance, because

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.