What is the integer value that gives a broadcast receiver highest priority?

前端 未结 6 1704
旧巷少年郎
旧巷少年郎 2020-12-16 14:51

What is the integer value the gives a broadcast receiver the highest priority?


  

        
6条回答
  •  既然无缘
    2020-12-16 15:45

    999 gives a broadcast receiver the highest priority.

    As per Android Documentation: Applications must use a value that is larger than SYSTEM_LOW_PRIORITY and smaller than SYSTEM_HIGH_PRIORITY. The value of SYSTEM_HIGH_PRIORITY is 1000.

    References: http://developer.android.com/guide/topics/manifest/intent-filter-element.html

提交回复
热议问题