I have a BroadcastReceiver registered to listen to the next action.
public static final String MY_ACTION = "com.blah.intent.action.DOSOMETHING";
And in my code I have
Intent intent = new Intent(MY_ACTION); sendBroadcast(intent);
If I use this, the broadcast is sent and gets fined, however, if I add Uri using setData before sending the broadcast, adding these lines.
Uri uri = Uri.parse("/sdacrd/myfile"); intent.setData(uri);
If I installed Data, the broadcast will not receive.
Can someone explain why setting intent data prohibits broadcasts?
source share