Questions tagged [async-onprogressupdate]

19 questions
3
votes
2 answers

AlertDialog setmessage not working inside Asynctask

Below is my code my trying to display my progress in Asyntask via onProgressUpdate method but it aint showing in the alert diaalog. Only the initial message is shown. class DownloadFileFromURL extends AsyncTask { …
3
votes
2 answers

displaying notification only once from onprogressupdate method

I am trying to display a notification only once from an onprogress update method. There is condition which will allow the notification to be displayed. The problem is that it continues to display notifications after the first one and the phone keeps…
2
votes
0 answers

Axios onUploadProgress jumps at 100% even before the request is done

I have a controller that calls multiple external api from Gmail API concurrently, and then saves the retrieved data into the database, all of this in ONE post request. To start, I pooled the external api requests, map the results and save it to…
devme deveper
  • 79
  • 1
  • 7
1
vote
0 answers

AsyncTask publishProgress not updating on onProgressUpdate when using BufferedReader

I want to update download progress of progress dialog but AsyncTask getting hangs when using BufferedReader. Not calling publishProgress and not updating progress dialog in onProgressUpdate. Also, it's not printing Log into while loop. I have tested…
1
vote
1 answer

UDP Image streaming Android

I want to send frames, captured from a webcam, to my android application over UDP Sockets, and display them so that it appears as live-stream. I am able to receive images at the Android App, but I can only display single image. Not a stream. What I…
1
vote
1 answer

How can i get the signal strong at real time?

Guys how can i use an Asynchronous task and run a loop that gets an updated RSSI on every iteration, and how can i update the UI with onProgressUpdate(). And for the last how can i use a Thread.sleep(500) in my loop to it updates every half second?
1
vote
4 answers

how to show dialog while doInBackground(). Asynctask

I'm triying to do a task with an Asynctask in android. class GetItemNames extends AsyncTask { @Override protected void onPreExecute() { super.onPreExecute(); } @Override protected…
0
votes
2 answers

ProgressDialog onProgressUpdate get error "DecorView: mWindow.mActivityCurrentConfig is null"

My ProgressDialog is as follows : ProgressDialog loading; in AsyncTask : @Override protected void onPreExecute() { super.onPreExecute(); if(loading!=null&&loading.isShowing()) …
0
votes
0 answers

Progress percentage of an downloading file not showing

I'm using an AsyncTask and onProgressUpdate for downloading and showing progress. It is running fine. But I'm facing problem in getting the percentage of file that is being downloading from my hosting Godaddy, my files are in web site created with…
Developer
  • 133
  • 1
  • 10
0
votes
1 answer

AsyncTask Update Progress without a loop

I have an asynctask and inside doInBackground, I don't have a for/while loop. Instead, I have a different class for it and that class generates a list using a for loop. So how can I update UI with onProgressUpdate? Here is: @Override protected…
0
votes
1 answer

AsyncTask onProgressUpdate doesn't change UI in the UI-Thread immediately

Hey, I am a programming a lobby system for android device, so that one device host a lobby for a game (i am programming) and the others can join the one. I am currently at the point, at which one device asks the Host to join and the host saves…
0
votes
1 answer

android AsyncTask::onProgressUpdate() gradle build error when I try to use anything from within the activity (UI thread)

I'm a little stumped. Before I start I should mention I use AndroidSutdio 2.3.3 (latest version at the time of writing). What I'm trying to do I have a basic activity what creates an AsyncTask and executes it. In the AsyncTask I want to update the…
0
votes
4 answers

onProgressUpdate is not being called android

I have this GetAllUsers(); in onCreate and I have this private void GetAllUsers() { (new LoadingUsers(this)).execute(); } Then I have this private class LoadingUsers extends AsyncTask < Void, Integer, String > { String TAG =…
Brownman Revival
  • 3,620
  • 9
  • 31
  • 69
0
votes
1 answer

XMLHttpRequest upload progress is non-computable

I'm attempting to use XMLHttpRequest to upload a file, but I can't get the progress callback (req.upload.onprogress below) to work correctly. It always reports that evt.lengthComputable is false. However, the server php reports the file attributes…
0
votes
0 answers

onProgressUpdate done at the end of the AsyncTask

public class VisitTask extends AsyncTask { private UserSocket userSocket; private TextView visitView; private Context context; Starting AsyncTask public VisitTask(UserSocket userSocket, TextView visitView, Context context)…
1
2