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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:46:41+00:00 2026-06-05T05:46:41+00:00

I am developing an Android application which runs a series of asynchronous sensor scans

  • 0

I am developing an Android application which runs a series of asynchronous sensor scans such as getting a list of MAC address of nearby bluetooth devices, getting the current location of the phone (GPS) and recording an audio sample of the surrounding noise.
Whenever each scan finishes I want a service to handle sending the collected data to a webservice (using http and REST).

The question I am facing is whether I should implement my own custom Service or use an IntentServce for handling multiple requests (intents sent using ‘startService()’) for uploading the data, because I want to be 100% sure that the found data eventually is sent to the webservice (if internet connection becomes available).

If Android decides to kill my IntnetService or the user force-kills it while still processing it’s work queue of requests, will I lose the queue of pending requests? I.e. will I need to save the state of the work queue (and therefore be forced to implement the Service myself without the use of IntentService)?

  • 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-05T05:46:43+00:00Added an answer on June 5, 2026 at 5:46 am

    If Android decides to kill my IntnetService or the user force-kills it while still processing it’s work queue of requests, will I lose the queue of pending requests?

    Your queue will evaporate if the user reboots their device. Otherwise, at least in theory, returning START_REDELIVER_INTENT from onStartCommand() (which is the IntentService default IIRC) should give you any Intent commands that were not handled.

    That being said, if you “want to be 100% sure” the commands are processed, I suggest that you create your own durable work queue (e.g., database table). Use an IntentService more as a request to process all outstanding durable work queue events (if any). Use a BOOT_COMPLETED BroadcastReceiver to handle the reboot case, telling your IntentService to process any commands left outstanding due to the reboot.

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

Sidebar

Related Questions

I am developing Android Application. In which i am having list view with text
I am developing one android application which select wifi access point from list of
We've been developing an Android application which includes Google Adsense. However there seems to
I'm developing an Android application which involves reading pdf files. Initially on syncing with
I am developing an Android application which makes use of the Osmdroid maps api.
I am developing android application in which i have to open option menu from
I am developing an Android application which needs to access QuickPay's service ( https://secure.quickpay.dk/form
I'm developing an Android application which uses the AccountManager to get access to the
I have been developing Android application which has 3 ListView and one ContextMenu for
Am developing android application which contains floating menu effect from left to right. I

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.