android-asynctask
Can't get publishProgress to work properly. Help?
I have an AsyncTask that take开发者_Go百科s urls and gets the content length for all urls that are passed through.I\'d like to have the progress bar update in the titlebar and have an alertbox display[详细]
2023-04-06 17:05 分类:问答Android AsyncTask and SQLite DB instance
I have a problem and I am not sure how to approach it. An activity in my app has multiple AsyncTasks which access single SQLiteOpenHelper. I initialize and open the helper in onCreate() and I am closi[详细]
2023-04-06 12:16 分类:问答How to extract selected item from ListView?
I have a Listview that can only select one item.When that item gets clicks, it runs an AsyncTask.In the onPostExecute(), an AlertBox Dialog pops up.But what I\'m trying to do is get the selected item[详细]
2023-04-06 11:14 分类:问答Stop method inside doInBackground of doAsyncTask
I have this AsyncTask: private class GetMyFlights extends AsyncTask<String, Void, Integer> { private ProgressDialog dialog;[详细]
2023-04-06 06:55 分类:问答AsyncTask "Only the original thread that created a view hierarchy can touch its views."
I try to modify the Spinner content across the AsyncTaks but I can\'t and the Logcat is wrote \"09-19 16:36:11.189: ERROR/ERROR THE(6078): Only the original thread that created a view hierarchy can to[详细]
2023-04-06 02:40 分类:问答Async Task returning int value after network working
I have my Asyntask structure as: private class GetMyFlights extends AsyncTask<String, Void, Integer> {[详细]
2023-04-05 21:40 分类:问答How can I display an image and its url side by side in android
I want to display an image and the url of it side by side. How c开发者_高级运维an I achieve this?To be honest, you question is not a good one and doesn\'t really fit the requirements here. Anyway, as[详细]
2023-04-05 14:04 分类:问答Results of AsyncTask into local variable
I\'m working on implementing a website\'s API in an Android app. There\'s a part of this API which gives me an array, which contains an array of image URLs. Now, I can iterate through the arrays just[详细]
2023-04-05 08:55 分类:问答AsyncTask not passing progress (what does super.onprogressupdate do?)
I am using AsyncTask to download different mp3\'s from webview. When I track my download progress and pass to onprogress update, it receives a 0 no matter what I do. I have tried using Doubles, Floats[详细]
2023-04-05 08:23 分类:问答AsyncTask onPostExecute not running on main thread?
I have a few Activities on my app that hit a web service.Since I don\'t want to hold up the main thread, this code is in an AsyncTask.However, I do not want the user to be manipulating the Activity wh[详细]
2023-04-05 07:50 分类:问答