Android - BroadcastReceiver not calling -



Android - BroadcastReceiver not calling -

when register broadcast receiver, onreceive not called. here code

@override public void onuserinteraction() { super.onuserinteraction(); intentfilter filter = new intentfilter(); registerreceiver(mbroadcastreceiver, filter); } private broadcastreceiver mbroadcastreceiver = new broadcastreceiver() { public void onreceive(context context, intent intent) { log.v("sunil", "broadcastreceiver======"); } };

you have string tell android trying looking , illustration if want seek code on on receive should utilize string in intentfiltre

intentfilter filter = new intentfilter("android.provider.telephony.sms_received");

android broadcastreceiver

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -