OK anyone please, I asked this question as an Android question but I realized I was able to recreate similar scenario on a pure Java Application.
I created a Thread class