Implicit Broadcasts

2019-07-19 14:59发布

"Apps that target Android O can no longer register broadcast receivers for implicit broadcasts in their manifest."

ACTION_VIEW is an implicit broadcast.

According to the above statement, one can no longer register as a broadcast receiver for any URI in the manifest. The only way to listen for a URI at this point is if the app is already running?

1条回答
你好瞎i
2楼-- · 2019-07-19 15:23

ACTION_VIEW is an implicit broadcast.

Not typically. ACTION_VIEW is used to start an activity, not as a broadcast Intent action.

one can no longer register as a broadcast receiver for any URI in the manifest

Broadcast receivers rarely filter on a Uri (i.e., have <data> elements in their <intent-filter>).

查看更多
登录 后发表回答