title: Android: Service startService or Bind service
body: <p>I have a service that is used by the main activity to do some background job and it's started using binding and unbinding.</p>
  
  <p>In this way, when the activity start the service start and stop when the activity call unbind, this work well.</p>
  
  <p>Now I need to have a CheckBoxpreference that once true will start the service and it must run in background despite the main activity will be close.</p>
  
  <p>What is the best way to get this result? do I have to work on startservice/stopservice from preferences or I have to don't unbind from main activity when the preference is true?</p>
  
  <p>if I start the service from the preference when already started from the binding of main activity, this will be multiple instance of same service ?</p>
  
  <p>Thank you</p>