Questions tagged as 'android-asynctask'

1
answer

AsyncTask as a subclass

I have a AsyncTask which works fine but I want to implement another AsyncTask . My question is whether two subclasses can be done within a class and that each of the subclasses implements AsyncTask . Is my approach correct?  ...
asked by 03.12.2016 / 20:53
2
answers

Fill a listview with Asynctask using the GET method

the issue is that I have a class where I get the data from MYSQL the communication between PHP and the base is working (poor with postman). The problem is that I do not know how to incorporate a LISTVIEW to show the data. private class Asyn...
asked by 20.12.2016 / 01:55
2
answers

insert records by asynctask in a web service from android

I want to insert records into a database, but iterate through a list. and in each tour insert the record. can the asynctask be run inside a for? any help please.     
asked by 08.09.2016 / 17:10
2
answers

Get Array List by AsyncTask from a URL

I am trying to extract a list array by asynctask of a url but I can not complete the action. This is the error:    Error: (35, 22) error: incompatible types   required: ArrayList   found: ArrayList       Error: (34,...
asked by 30.06.2016 / 21:17
1
answer

Save selected options in SharePreferences of an AlertDialog Multichoice

Good afternoon I have an AlertDialog in the Multichoice actionbar, which I fill from a webservices. I need that when the user selects one or x options and clicks on ok, those options are saved in the Sharepreferences of the system, so when...
asked by 08.06.2016 / 19:40
2
answers

Perform HTTP Requests over USB and Sockets

I am working on a development which consists of being able to make HTTP requests using the usb cable and the pc as an intermediary, I followed this page which helped me but I'm having a little problem which I can not fix, here's my code:...
asked by 02.06.2016 / 17:50
1
answer

Fix of ksoap objects

I am developing an app in android studio, I am consuming a webservices in asmx. The detail is that I have in my websevices a method called menú , which brings me in an xml menu, which I want to show a ListView , the detail is that...
asked by 20.04.2016 / 20:54
0
answers

Activate alarm manager 5 minutes before scheduled

I am investigating with AlarmManager and until now it is activated according to the programmed. This is what I use intent = new Intent(mContext, AlarmReceiver.class); alarm.toIntent(intent); sender = PendingIntent.getBroadcast(m...
asked by 13.11.2018 / 17:14
0
answers

Android Retrofit 2 Synchronous

I want to make a synchronous call in retrofit inside an AsyncTask. I am generating the json in php, I saw that the size is almost 900kb, I read it, and I save it in a sqlite database, then I call another json and then another. I'm a little lo...
asked by 16.10.2018 / 05:50
0
answers

Android HttpUrlConnection readStream

Something incredible happens to me and I already provide everything but I could not find the result, and the worst thing is that I do not know why this happens, where the error is. I'm working with HttpUrlConnection, everything works perfect,...
asked by 08.09.2018 / 14:52