android - What is the integer value that gives a broadcast receiver highest priority? -
what integer value gives broadcast receiver highest priority?
<intent-filter android:priority="1"> <action android:name="android.provider.telephony.sms_received" /> </intent-filter>
well, according documentation
"the value must integer, such "100". higher numbers have higher priority."
so i'm guessing integer value valid. , highest priority possible maximum integer android allows, (2^31 - 1).
edit
the documentation has been updated, , explicitly states priority values may used applications. documentation says
system_high_priority (1000): applications should never use filters or higher priorities. system_low_priority (-1000): applications should never use filters or lower priorities.
implying application permitted use integer priority levels between -999 , 999.
Comments
Post a Comment