[android-developers] my activity lost visibility after unlocked screen...
I have a broadcast receiver to listen the incoming sms and launch an
activity after received any.
After the activity is launched, the screen will be unlocked using the
following code in onCreate() method.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
and then the activity is gone.
I think it is the default sms app in the phone refreshed the widget on
home screen and made my activity gone, but my activity is actually
still running.
I am wondering is there a way to keep my activity visible when the
screen is unlocked using above code??
Thanks for the help.
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home