Questions tagged as 'android-asynctask'

2
answers

the notifyDataSetChanged does not work with AsyncTask

I'm trying to load a list but every time I try to update the view of the recyclerview, I do not load the data, just load the first record, here I leave the code: public class LoadInfo extends AsyncTask<Void, People, Void> { private...
asked by 11.09.2017 / 12:20
1
answer

Problems with ACCESS FINE LOCATION permission

I am trying to give permissions in time of use. The permission I want to give is the location. I do the following I define in the Manifest <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission...
asked by 15.06.2017 / 06:05
1
answer

XML Parseo with use of RecyclerView

I'm doing an app that consumes data from an xml that comes from the internet, this consumed data is shown in CardViews inside a RecyclerView so when you click on the image of the CardView another screen with the details is opened (Image, title o...
asked by 13.06.2017 / 17:53
1
answer

The service never calls AsyncTask

I have a service that gets my location and it is updated every few seconds in "onLocationChanged" (that works well), that's when I have to call my AsyncTask repeatedly to send the coordinates and they arrive at my web service , but the problem i...
asked by 01.06.2017 / 19:24
2
answers

progress dialog in asyntask

I have a class that uses an asyntask to store data in a database, everything works fine, until the moment where I want to add a progressdialog to wait for the insertion in the database, I leave my current code, I hope can you help me? public c...
asked by 29.05.2017 / 02:58
0
answers

Error httpUrlConnection, bufferedreader or inputStream

I have a asynctask that receives data from a remote file that I access through a java servlet. The fact is that when the task takes a little longer because you have to create the record in the bbdd, when I receive the inputStream w...
asked by 31.03.2017 / 19:01
0
answers

Send mail with javamail, show Exception

Hello to everyone who reads, as the title says I need to send mail with javamail, I have already implemented it and it works super well, the problem is with the exeption, because I use AsyncTask it always tells me to send even if there is not se...
asked by 07.03.2017 / 20:55
1
answer

When going through the second my sqlite table starts from the second android record

Good morning I'm just finishing developing an app in android studio, I just have a problem, I save data in a bd in sqlite, only when I make a select from my table I do it well, but I try to go back to my table but it does from the second reco...
asked by 28.12.2016 / 16:38
0
answers

Problem when uploading an FTP file using an Asynctask

I have a problem with uploading a file to my ftp server: The problem is not that the file does not upload, or that I can not connect to the FTP server (in my local network) ... The problem is that after connecting, upload the file, the connectio...
asked by 21.01.2017 / 14:57
1
answer

Problem with Asynctask that when inserting in database does not pass to the next activity

I have a login form for a user that is connected to a MySQL database. The problem is that when I insert it, it does not happen to the next activity. The problem is in onPostExecute in my opinion, any ideas? private class Asyncinsert...
asked by 15.12.2016 / 20:50