Remove All Ads from XDA

android broadcast queue questions

3 posts
Thanks Meter: 0
By brian722, Junior Member on 11th January 2014, 12:16 PM
Post Reply Email Thread
hi all :

recently i am looking at . i am very interesting the flag( Intent.FLAG_RECEIVER_FOREGROUND) . why add the flag.
i found android developer website . it explained that Intent.FLAG_RECEIVER_FOREGROUND .(if set . sending broadcast that receipent can be allowed to foreground priority . short timeout interval )

i know that android broadcast queue contain two queue . one is foreground queue (foreground priority). another is background( normal priority) .

my question is the following :
1. why need add the flag (Intent.FLAG_RECEIVER_FOREGROUND)
2. what mean foreground priority ? i donot understand
3. in broadcast ACTION_CONFIGURATION_CHANGED . wheather we must add the intent flag (Intent.FLAG_RECEIVER_FOREGROUND)

Intent intent = new Intent(Intent.ACTION_CONFIGURATION_CHANGED);
broadcastIntentLocked(null, null, intent, null, null, 0, null, null,
null, AppOpsManager.OP_NONE, false, false, MY_PID,
Process.SYSTEM_UID, UserHandle.USER_ALL);

any advices are welcomed . i wish we can learn more . more deep-dive . t
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes