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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:32:58+00:00 2026-05-25T14:32:58+00:00

I have an Android app with a receiver that listens for 2 intents, 1

  • 0

I have an Android app with a receiver that listens for 2 intents, 1 that spawns a thread to write to a file and 1 that spawns a thread to upload the same file to a server.

I have a script on my host machine that needs to manually send intents to the receiver via “adb shell am broadcast”. I want to send an intent to write to a file and then send another intent to upload it. However, both creating and uploading the file can take an unknown amount of time and I need to wait for the file to finish being written before uploading it.

Is there a way for my Android app to somehow signal to my host script that writing is done? Or is there a way I can poll the app with my script and the app returns the status of the file?

The only thing I can think of is creating a temp file when the real file is complete. The script polls for the existence of this temp file and uses it as an indicator that the real file is ready to upload.

  • 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-25T14:32:59+00:00Added an answer on May 25, 2026 at 2:32 pm

    Your app can make some request to some address and in the parameters of the request it can send the status

    for example

    void somemethod(){
    //do stuff
    //sendfrlagforfinish on you host adress
    //or in case of error send flag for error
    }
    

    on your host you need to have a listener (service) running that will receive these requests

    I have done something similar and my request to my server looked like this

    www.myserverhostip.com?flag=success
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following receiver that listens to Boot_Completed <receiver android:name=.receivers.ActionBootCompletedReceiver> <intent-filter> <action android:name=android.intent.action.BOOT_COMPLETED/> <category
I have an android app that listens for json commands over a socket. I
I have an Android app that I had working a few months ago which
I have an Android app that begins by displaying a dialog. When I set
In my Android app I have a service that is started via AlarmManager. I
I am trying to create an android app that communicates with a local server
Hello I faced the same problem I have 1 broadcast receiver from that I
Ok so I have a simple Android app that I want it to go
I have a application in Android that has a broadcast receiver that clear any
I have an app that listens to incoming messages, and if the originating sender

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.