Como Programar Em Java Para Iniciantes

Oh.That's somewhat shocking I didn't knew about it. The bluetooth remains connected to the phone when the app is in the ram (until you clear phone memory)the app remains connected and I tend to use that condition.
This is what I observed about the condition and what I want :-