title: Binding service by BroadcastReceiver
body: <p>My Application uses a service that is started by a BOOT_COMPLETE BroadcastReceiver, in run i'm getting an error</p>
  
  <p>my code: </p>
  
  <pre><code>public class projet extends BroadcastReceiver { 
   public void onReceive(Context context, Intent intent) { 
  
    intent = new Intent(context, ScreenshotService.class);
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    context.bindService(intent, aslServiceConn, Context.BIND_AUTO_CREATE);
  }
  }
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start receiver com.example.projet: android.content.ReceiverCallNotAllowedException: BroadcastReceiver components are not allowed to bind to services
  </code></pre>