Finally I figured out the solution to posting a message from a thread to service. Without proper implementation of the Thread
class you will not be able to post a message. The code below works fine.
Message status = adhocFinderService.someHandler.obtainMessage();
Unless you pass the instance of service to the thread it passes a null
value.