Questions tagged as 'android-asynctask'

5
answers

"NullPointerException" error when running an AsyncTask on Android

I am working on an Android activity that consults a database to fill a ListView, I leave the code: private class EjecutoConsulta extends AsyncTask<Void,Void,List<Comunicado>>{ @Override protected void onPostExecute(List...
asked by 08.06.2016 / 09:18
1
answer

Scroll listview and add edittext data

I am developing an application that consumes web services ( Web Services ), it is already advanced and I am now filling a ListView through a custom adapter a detail which brings information such as the balance and balance due, and a Ed...
asked by 10.05.2016 / 23:26
2
answers

Asynchronous task never stops running

It's my first time explaining a programming problem in such a prestigious forum, so, I apologize if my question and explanation is not correct but I need help and I can not find a solution. I am developing an app for Android on a puzzle,...
asked by 27.12.2016 / 23:05
3
answers

How to run an asynctask every so often?

I'm making an application on android. Inside it I have a Google maps object from which I get the latitude and longitude respectively. The problem is that I need to send this data every 3 seconds to a server through the Web Service. However, I ca...
asked by 31.07.2016 / 08:52
1
answer

Sending an image by WhatsApp

I want to send an image by whatsapp to a specific phone number without having to access the image gallery and within the contact's chat. Now what I do is the following: Intent intent = new intent(); intent.setaction(Intent.ACTION_SE...
asked by 20.06.2017 / 09:13
1
answer

Configure the android emulator with proxy

Good mates I'm trying to emulate some services in the studio emulator but the network I'm connected to contains proxy and I would like to know how to configure ... I have android studio 2.1.2 I already tried placing it in the emulator: Set...
asked by 16.11.2016 / 17:26
3
answers

Move from one fragment to another

I would like to know how I can move from one fragment to another without having to mount both of them in the container, then my code. Activity where the container is and call the first fragment: public class Home extends AppCompatActivity {...
asked by 11.11.2016 / 18:53
1
answer

Use Activity.runOnUiThread () or Handler.post (Runnable) to update the main Thread?

Very good, I have a question related to when I have to use (or why) Activity.runOnUiThread () instead of, or vice versa Handler.post (Runnable) strong> to update for example a TextView or ProgressBar , or alternatively, I should use Asyn...
asked by 08.06.2016 / 13:08
2
answers

org.json.JSONException: Value

I am trying to fill a spinner with mysql data using php web services that return a JSONArray, the problem is that it is giving me back the error that says the title. private class consultarDatos extends AsyncTask<String, Void, String> {...
asked by 15.05.2017 / 03:13
1
answer

Refresh listview SwipeRefreshLayout

Taking as a start I'm finishing my android app, and I need to update my custom listview when I slide down the screen. I am implementing SwipeRefreshLayout only that I got stuck in the part of the onRefresh method and I do not know how t...
asked by 19.05.2016 / 02:11