title: Not able to get binder object from Service
body: <p>I am receiving a boot completed intent in my BootReceiver class and start a service when I receive that intent.</p>
  
  <pre><code>@Override
  public void onReceive(Context arg0, Intent arg1) {
      Intent myIntent = new Intent(arg0, BootService.class);
      arg0.startService(myIntent);    
  }
  </code></pre>
  
  <p>The service is started normally and now, I want to use the binder object within the service . Here is the service code.</p>
  
  <pre><code>public class BootService extends Service implements IBinder{
  private IBinder binder;
  
  public class LocalBinder extends Binder {
      IBinder getService() {
          return BootService.this;
      }
  }
  
  @Override
  public void onCreate() {
      super.onCreate();
      Log.d("BootService", "onCreate()");
  
  }
  
  @Override
  public int onStartCommand(Intent intent, int flags, int startId) {
      Log.d("BootService", "onStartCommand()");
      binder = new LocalBinder().getService();
      //This doesn't seem to work
      //I wana use this binder object here
  
      return START_STICKY;
  }
  .....
  }
  </code></pre>
  
  <p>I am not sure if this is the correct way to get a binder. 
  Any help is much appreciated!!</p>