Questions tagged as 'android-asynctask'

1
answer

AsyncTask class in android Java with its methods does not complete the process

I have a process that I want to run in the background, it works but at the end I want it to go to the next activity but it does not, it gives me a black screen and when it finishes the task goes to the activity: within the class I have several c...
asked by 23.08.2018 / 00:06
1
answer

Start a service at a specific time

I am trying to create a service that runs and executes some tasks in back. It has to start running at one hour and finish at another. For example, a service that starts running at 3:00 and stops at 7:00. I'm seeing examples with class Ser...
asked by 18.06.2018 / 17:52
0
answers

Update UI from an asynctask

from an activity where I have a simple listview of three items and each one has a counter (set) for example: item1 has 2 units item2 has 3 units item3 has 4 units. That number of units is a value set by the result of the asyntask public cl...
asked by 18.06.2018 / 22:24
0
answers

Use of the Loader class in Android Studios to keep custom list changes with checkbox with AsyncTaskLoader

Good I am trying to do something that probably is of the most complex things that I carry out in android. Let's see, I put you in a situation, I have a list of currencies in which when clicking another list is activated right on your right. T...
asked by 04.06.2018 / 20:16
0
answers

Error (400) when connecting Android Studio with API

I'm trying to get an API get but it returns a 400, I've tried putting my local IP and putting 10.0.2.2 , but the same thing keeps coming up, in the Event Log I get this too: Emulator: CAN NOT TRANSLATE guest DNS ip , from the PostMan it r...
asked by 11.05.2018 / 22:46
0
answers

How can I get the status of the applications that are running on android

How can I get the status of the applications that are running on android, please appreciate if someone can guide me or have an example     
asked by 24.04.2018 / 19:29
1
answer

How to run AsyncTask every x seconds?

Currently I call it once like this: hiloconexion = new ObtenerWebService(); try { hiloconexion.execute(GET, "1").get(); } catch (InterruptedException e) { e.printStackTrace(); } catch (Execution...
asked by 19.04.2018 / 08:30
0
answers

Activity closes when executing handler

What I want is to call a class every x time to show a data that I have in MYSQL and that is updated. Then I thought about creating a handler and calling the class that connects me with MYSQL with a delay but I close the activity and go back t...
asked by 17.04.2018 / 17:15
0
answers

ListView is cut off when viewing remote server with Android Studio

I have an activity with tabs, and in a fragment of these tab I load a list View, in this fragment I have a class that inherits from AsyncTask and what it does is bring from a webapi a list of names of people and the route to an image that is on...
asked by 18.04.2018 / 14:38
0
answers

"java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive notification" On an AutoCompleteTextView

Currently I have a form in which I have a AutoCompleteTextView element, to fill this View I have an adapter called AutoCompleteStoreAdapter in which, using the getFilter () method, I get the data from the GetAllStores class that extends fr...
asked by 13.03.2018 / 20:07