0

I have AI, he must press buttons with delay. I use thread.sleep / handler.postdelayed / empty animation / and other things, but it is not works or it is not what I need.

Example of scenario what I need:

  1. Wait 1 sec;
  2. Button.setSelected(true);
  3. Wait 1 sec;
  4. Button.setPressed(true);
  5. AI_Logic();

Can someone help me with that?

1 Answers1

0

If you need it for testing purposes just use Espresso. If you need it in application what problems did you encounter?

Karzmu
  • 142
  • 1
  • 9