I tried to make it with
thread, but with the thread I can't change it. Now I tried to make a handler but it's not good either.
Here is the original thread code:
I hope you can understand what I want to do, sorry I'm not perfect english
If you can, please give me an alternative code for this. It's very annoying, that only this is what I need for my program, but I can't do this. Sorry if this question, is so easy or something but I'm a beginner programmer.