I have a Service running in my app..
This Service has an object for sending message to the server and a function to get that object and use it.
The object is
As far I know, Android service run on UI thread. If you want to make an asynchronous job, you should use Intent Service See: What is the difference between an IntentService and a Service? Here is an Intent service example you can try.
Intent Service