the symptom: I have a broadcast receiver that listen to sms, when a
sms is received, i call an activity to display.

It works all fine if the screen is on and not locked.

But when screen is locked, and as soon as i received the sms, the
activity popup for a second then disappeared.

and I use the code to unlock the screen

        
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
        
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
                                | 
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);

I think it might be the competitions with phone default sms program
( the sms default program shows a notification only). I am wondering
is there a way to set priority to broadcast receivers or even the
activity that receiver stared, to avoid the conflicts between multiple
receivers. or set orders to execute one by one?

I have tried to thread.sleep my receiver for a second, still not
working. Any idea to solve the issue? help please.

Thanks a lot.

Kev

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to