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:
- Wait 1 sec;
- Button.setSelected(true);
- Wait 1 sec;
- Button.setPressed(true);
- AI_Logic();
Can someone help me with that?