对于安卓7.0及8.0取消了许多静态注册广播,官方SDK有做优化处理吗

liuzj505
2018-05-25 01:22 2.0k 0

Declaring a broadcastreceiver for 'android.net.conn.CONNECTIVITY_CHANGE' is deprecated for apps targeting N and higher. In general, apps should not rely on this broadcast and instead use 'JobScheduler' or 'GCMNetworkManager'.
在 Android Nougat (7.0) 中,Google 移除了三项隐式广播(Implict Broadcast)(CONNECTIVITY_ACTION, ACTION_NEW_PICTURE, ACTION_NEW_VIDEO),而在 Android O 中除了这里列出的,其余所有的隐式广播都被移除了。

1个回答

热门排序
  • tangxian
    2018-05-25 02:07

    7.0、8.0已处理, 9.0后面也会进行优化的