Questions tagged as 'async'

0
answers

Why is my AsyncTask freeza?

At the moment I instantiate an object EmailTask the app hangs = ( public void send(View view){ EditText text = (EditText) findViewById(R.id.editText); Switch iluminacao = (Switch) findViewById(R.id.switch1); Switch...
asked by 24.03.2015 / 20:16
0
answers

xml components are not loaded in activity

Edition:    I just discovered that if you comment on the lines that cause the error,   it gets the screen all black ... that is, it does not load the layout. I'm trying to get a ProgressBar and a TextView to be able to make changes accord...
asked by 02.12.2014 / 14:56
1
answer

How to do a while without crashing the Java application

I'm building an application in college that needs to run a code for 2 minutes and minute by minute make an assessment of the system and the variables that are in it. I've already searched the internet, some say to use new Thread() others...
asked by 26.03.2018 / 19:46
1
answer

Error SQLiteDatabase db = this.getWritableDatabase (); [closed]

public ArrayList<String> addMigracaoCadIndividual(String QUERY){ SQLiteDatabase db = this.getWritableDatabase(); return null; }    java.lang.NullPointerException           at android.content.ContextWrapper.openOrCreateDatabase (C...
asked by 09.04.2018 / 20:48
1
answer

Python asynchronous generators

With the introduction of the asyncio library, a new syntax has been introduced to define corotines in Python> = 3.5 and with it you can define asynchronous methods, asynchronous iterators, and even asynchronous generators. How can I im...
asked by 20.06.2018 / 19:33