Questions tagged as 'android-asynctask'

1
answer

Android Should I use a doInBackground inside an AlertDialog?

Good morning everyone. I have this doubt ... The fact is that I need to click on an item in a list to 'execute' a URL that returns a true or false answer, to confirm or cancel a reservation. I am using a AlertDialog within a On...
asked by 12.08.2017 / 07:15
1
answer

Access layout elements after the onMarkerClick event

I am stuck in the development of my application and I can not find anything to solve the problem. Once the onMarkerClick event occurs, after an asynchronous call has occurred before. When the clickmarker event skips I can not access tw...
asked by 06.01.2017 / 13:04
2
answers

Problem to login in android studio using KSOAP

I am developing a mobile application in Android Studio consuming from a WebServices made in asmx. Only when I run my app and enter the username and password send me an error    E / Response: Error: Can not create handler inside thread that ha...
asked by 13.04.2016 / 19:48
0
answers

Proper process

I need my Android-App to retrieve the configuration from the server once per hour via http-get. I'm new to Android, I've been fighting for days ... Finally I made it using AlarmManager. With setInexactRepeating (alarm type RTC_WAKEUP) trigger...
asked by 10.05.2018 / 10:34
0
answers

Ksoap sending request in null

I have the following code using the Ksoap2-android-3.6.0 library @Override protected Void doInBackground(String... params) { try { SoapObject request = new SoapObject(NAME_SPACE, METHOD); PropertyInfo prope...
asked by 21.09.2016 / 00:28
0
answers

Problem with AlertDialog and multichoice

I have an AlertDialog that has a multichoice and that it is filled by means of an arraylist of objects, that data I get from a webservices. The problem I have with this AlertDialog is that when I click on my actionbar to see if it loads the c...
asked by 04.06.2016 / 00:19
3
answers

Cancel AsyncTask and the ProgressDialog when pressing back button on Android

I have a AsyncTask that launches a ProgressDialog in modal form, that can not be canceled. In the onPreExecute start the progressDialog progress = ProgressDialog.show(MainActivity.this, "titulo","progreso x", tru...
asked by 31.05.2017 / 22:04
1
answer

How to get the value of an AsyncTask? Wait until you get the result

First of all, I am somewhat inexperienced (very inexperienced) with AsyncTask and I have two problems. first I pass a user and pass to the Task to compare the ones with those of my DB in the Login section and the second is the same but...
asked by 14.12.2017 / 01:36
1
answer

Get text (String) from a RadioButton within a RadioGroup

I want to get the text of rabiobutton selected by the user. I have 5 radiobutton within a radiogroup to then use this field in an Asynctask and insert in a BD. the fact is that I can not get the text. What I have is the f...
asked by 11.01.2017 / 21:33
2
answers

I can not get the FINISHED status of an AsyncTask on Android

I am running AsyncTask in the following way: MyAsyncUploadFilesTask myAsyncUploadFilesTaskFF = new MyAsyncUploadFilesTask(); Log.e(TAG, myAsyncUploadFilesTaskFF.getStatus().name()); // PENDING for (Report rp : reports) { myAsyncUpl...
asked by 15.12.2016 / 17:07