I have an issue which happens only on Samsung devices:
I am trying to start an activity from a service extending a
wakefullIntentService. If the screen is locked, the activity should start
over the lock screen. In some cases this happens, in some it doesn't. Once
the screen is unlocked I can see my activity there./
I use the following code in the activity:
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON |
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
Does anyone have any idea?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/068805fd-05f9-4a66-a9e2-24759f2f829e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.