Questions tagged as 'handler'

1
answer

Are you having trouble using 2 handler.postDelay () at the same time?

I would like to know if there is any problem with the App's performance in using 2 handler.postDlay() at the same time, type calling the 2 in functions: inside the OnCreate Td1 (); Td2 (); public void Td1(){ final Handler handler =...
asked by 31.08.2016 / 00:22
1
answer

Exception handler return in JSON

I am building a RestAPI using Laravel / Lumen , in tests it can happen that the return is entirely in HTML, this occurs when that already famous screen appears: Whoops looks like something went wrong This is very difficult to test the re...
asked by 24.01.2017 / 00:50
1
answer

The use of the handler function is skipping the ids. How do I prevent this from happening?

See the example: create table time( id int not null primary key auto_increment, nome varchar(50) unique )engine=innodb; delimiter $$ CREATE PROCEDURE insertteam (nometime varchar(50)) begin declare continue handler for 1062 select 'vc ja inse...
asked by 05.09.2017 / 21:39
2
answers

Error "is not an enclosing class"

I'm doing a Handler exercise just to test how it works, but I'm trying some problem I can not figure out. This is my main class code: public class MainActivity extends Activity { protected static final int MENSAGEM_TESTE = 1; private Handl...
asked by 01.12.2016 / 14:19
1
answer

Calling non-static function inside a Handler

I'm developing a code in android studio where I get data through a buetooth transmission. The data goes to a function called Handler, which is static. public static Handler handler = new Handler() { @Override public void handleMessage...
asked by 22.09.2017 / 22:25
0
answers

Continuous Thread

Is it possible to create continuous threads? I have 5 messages that will be generated shortly after I click the button, they are generated at once. I want instead of being generated at once, it takes 5 seconds to generate each, but continuously....
asked by 20.10.2018 / 04:36
1
answer

use handle in textView [closed]

I'm creating a chatbot and I want it when I send something, it appears in a textview the message 'thinking ...' for 5 seconds before sending the answer, I've already studied Handler, but so far I have not had any idea how do that, anybody have a...
asked by 17.10.2018 / 23:00
1
answer

Error page 500 returned instead of Laravel error page

I do not know why errors are not rendered in my project, it simply does not go through the handler method. bootstrap / app.php <?php $app = new Illuminate\Foundation\Application( realpath(__DIR__ . '/../') ); $app->sing...
asked by 02.03.2016 / 18:12