Manifest-declared BroadcastReceiver not picking up explicit broadcast when app is not running
问题 I am trying to get two apps to communicate via broadcasts. The first app sends a broadcast using code like the following: Intent outIntent = new Intent("org.example.WHATEVER"); PackageManager pm = this.getPackageManager(); List<ResolveInfo> receivers = pm.queryBroadcastReceivers(outIntent, 0); if (receivers != null) for (ResolveInfo receiver : receivers) { Log.d("Sender", String.format("Polling %s", receiver.activityInfo.packageName)); outIntent = new Intent("org.example.WHATEVER"); outIntent