android - What happens when two apps define same BroadcastReceiver class in their manifest? -
i have android library project broadcastreceiver class , scheduler class defines methods setting repeating pendingintent broadcastreceiver //delay alarmmanager setrepeating method in seconds //id requestcode pendingintent public static void schedulebroadcast(context context,int delay,int id){ intent intent = new intent(context, superreceiver.class); intent.putextra(key_delay, (long)(delay * 1000)); intent.putextra("app_name", context.getpackagename()); long timegap = (long)(delay * 1000); pendingintent alarmintent = pendingintent.getbroadcast(context, id, intent, pendingintent.flag_cancel_current); alarmmanager alarmmanager = (alarmmanager) context.getsystemservice(context.alarm_service); alarmmanager.setrepeating(alarmmanager.rtc_wakeup, system.currenttimemillis() + timegap, timegap, alarmintent); } the receiver @override public void onreceive(context context, intent intent) { log.e("chirag-library"...