title: Starting a new thread in service for a responsive UI
body: <p>I would like to take advice of the community on the approach I have followed. Is this a good approach or there is something better way..</p>
  
  <p>As my service(which runs periodically) is local to my app, my assumption is that service runs in the main thread itself. So if service and activity are running the activity becomes less responsive.
  My assumption is that starting a new thread will ease of main thread and UI will be more responsive..</p>
  
  <p>onStartCommand
  start a thread
  let the newly created thread post a message (delayed) to itself via postDelayed and provide serviceRunnable in which main service work is done. In the same runnable the postDelayed is called again.</p>
  
  <p>Please let me know if this theory is correct</p>