Hi!
I want to run some kind of loading (refreshing text) while programs works in background.
I'm tried with
thread but it not works propertly.
This is my algorithm:
1. enter data
2. start loading thread
3a. if data OK stop loading thread and show result
3b. else stop loading thread and return to 1
Thread in run method have infinity loop "while(true)". I stops thread with thread.inrerupt();
Problem is when i enter wrong data second time. When enter data second time thread first stops and then starts! (but first is called start).
I know that threads can do this but how can i solve this?
Thanks!