Tecnologia do Blogger.
RSS

[androidbrasil-dev] Dúvida BroadcastReceiver

Olá pessoal.

Por que o sistema pode não estar entrando no onReceive da minha classe TratadorBroadcast?

Classe:

public class TratadorBroadcast extends BroadcastReceiver {

@Override
public void onReceive(Context aContext, Intent aIntent) {
if (aIntent.getAction().toString().contains("BOOT_COMPLETED")){
Intent i = new Intent();
i.setAction("com.atc.barcodereaderpa.SincronizarService");
aContext.startService(i);
Log.i(this.getClass().getName(),"onReceive()");
}
}
}

Manifest:    
<receiver android:name=".TratadorBroadcast">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>

</receiver>
Agradeço desde já!

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário