title: How can I get Intent in a service?
body: <p>I have this intent:</p>
  
  <pre><code>Intent serviceIntent = new Intent(getApplicationContext(), Servicio.class);
  serviceIntent.putExtra(MainActivity.EXTRA_BT_DEVICE, btDevice);
  getApplicationContext().startService(serviceIntent);
  </code></pre>
  
  <p>But for some reason, in the service with this code:</p>
  
  <pre><code>btDevice = (BluetoothDevice) params.getExtras().get(MainActivity.EXTRA_BT_DEVICE); 
  // btDevice = getParcelableExtra(EXTRA_BT_DEVICE)
  </code></pre>
  
  <p>It says the intent is null, but it isn't null on the activity.</p>