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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:25:20+00:00 2026-05-19T03:25:20+00:00

Problem: I want to write a process that will allow a user to take

  • 0

Problem:

I want to write a process that will allow a user to take photos with the device and for those photos to then be uploaded to some listener in the cloud. The user should not have to do anything to initiate the upload, a background listener would just watch the folder and as long as it finds files in it it would upload them and delete them.

Two problems:
1) how to keep the program running in the background even after the user is no longer taking pictures (and if they reboot the device for it to wake up and finish the uploads, if any remain)

2) assuming the connection is spotty (as it always is) how to verify that a given image has completed its upload, and if not, to resubmit it.

I don’t need any code examples, I just would like opinions on the best strategy to get this implemented.

I was going to use Apache commons and just do an upload to a PHP, but am not sure what sort of error checking exists to take into account a connection drop mid file.

TIA.

  • 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-19T03:25:21+00:00Added an answer on May 19, 2026 at 3:25 am

    Having essentially written this application several times on several platforms, I can tell you that it’s not a trivial endeavor. To tackle the first problem, you can create a Service that sits in the background and performs your uploads. In order for it to start up automatically, you can declare that it receives the intent android.intent.action.BOOT_COMPLETED in your manifest (you’ll need the permission android.permission.RECEIVE_BOOT_COMPLETED in order to make use of that). If you’re going to listen for stuff written out by the standard camera app, you can use registerContentObserver to listen for new stuff – beware, phones can have more than one place they stash photos!

    For the second problem, have your webservice return information regarding the completion of the upload which your client can use to decide on retries.

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

Sidebar

Related Questions

I want to write a program that will encrypt an entire folder and it's
I'm working on an embedded device that does not support unaligned memory accesses. For
We have an old process (VBScript) that reads a common mailbox and processes certain
I'm wondering if there's a way to write-protect every page in a Linux process'
I have read everywhere that unsigned Java applets are not allowed to make network
All, I'm starting a new ASP.NET MVC project which requires some content management capabilities.
I am working on a module whose purpose is to process Java exceptions and
I am evaluating the Hudson build system for use as a centralized, sterile build
I'm trying to investigate the state of the C/C++ heap from within gdb on
I'm trying to get to grips with NHibernate, Fluent NHibernate and Spring. Following domain-driven

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.