Questions tagged as 'android-asynctask'

0
answers

Unable to add window - token null is not valid; is your activity running?

The fact is that I have a ProgressDialog within a class AsyncTask and the case is that when it is executed, to make a connection, the first time I get the Progress correctly, but if I do a search again (this is what the Asynctas...
asked by 27.02.2018 / 12:45
0
answers

How to connect my android to an external DB with PHP or JSP?

I have a question I am using what is Asynctask and everything was fine that I bought an ssl and I put it to my domain after that I got an error that did not allow me to do anything for this with ssl anyone knows any other library that I can serv...
asked by 09.12.2017 / 05:46
1
answer

Run an Asynctask within a fragment with a listview

I have a Asynctask that gets data from a webservice and this data the user sees through a lisview, but now I want to enter the listview in a fragment . but I can not achieve it. Well the fragment appears where I am using V...
asked by 08.10.2017 / 00:55
0
answers

How to verify server response?

I am developing an android app, the server responds to me by creating a json from php, but now it takes time to generate the text and until then the AsycnAsk already receives me as a null error. How can I do to control that? This is the fu...
asked by 29.09.2017 / 17:09
1
answer

How to initialize sqlite from AsyncTask (asynchronous task)?

Greetings. I am a newbie in the development of applications in android and I would like to support me to solve my doubt of how to initialize SQLite from a class, in this case I am in an AsyncTask but I mark an error in the context I have seen so...
asked by 14.09.2017 / 16:39
1
answer

ListView with fragment button

I have a problem ... I load the list but the button event does not work. fragment_pedido_consultado.xml <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout...
asked by 28.05.2017 / 05:48
1
answer

Error in PHP webservice

I am using SOAP library web service for Android. I have this web service. function ws_put_q_answers($ids, $date, $users, $completeds, $idstores, $checkins, $checkouts, $locations) { include "conn.php"; for($i = 0; $i < sizeof($id...
asked by 14.02.2017 / 00:02
1
answer

Failed to run an AsyncTask

I have the following error when using AsyncTask    method gettext must be called from the thread My code: private class EnviarCorte extends AsyncTask<Void, Void, Void>{ public void onPreExecute(){ //Antes de empeza...
asked by 23.01.2017 / 21:01
1
answer

Tutorial to send ArrayListString as JSON in Adroid with AsynTask [closed]

I'm looking for a tutorial or example of how to pass an ArrayList to JSON and send it through an AsynTask to a PHP server, but I do not see anything clear. Do you have any link to a good tutorial or some code already chopped around?     
asked by 27.09.2018 / 11:24