So after seeing this work in the wild a bit, it seems like some phones actually corrupt the view when they see this flag. I don't see it as part of the compatibility doc for vendors so I doubt they test it well. On the DroidX, I have seen the screen get drawn totally incorrectly (different per version of Android) and in some Samsung roms the entire window is corrupted. This doesn't seem to be something in the compatibility docs for vendors. Is this just for ICS and forward? It has existed since 1.0 it seems.
-Greg On Thursday, January 12, 2012 9:04:15 AM UTC-8, Romain Guy (Google) wrote: > > Add this flag to your window in onCreate(): > > http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE > > On Thu, Jan 12, 2012 at 1:48 AM, Michael Banzon <[email protected]> wrote: > > On Thu, Jan 12, 2012 at 10:13 AM, Tom Uhl <[email protected]> wrote: > >> Is there a way for an app to disable the new built-in-screenshot > >> function in ICS? > > > > I don't think there is. If there is - I'm guessing you're trying to > > "protect" something - please keep in mind that the user can also grab > > screenshots through USB-debugging or through HDMI. > > > > -- > > Michael Banzon > > http://michaelbanzon.com/ > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > -- > Romain Guy > Android framework engineer > [email protected] > > On Thursday, January 12, 2012 9:04:15 AM UTC-8, Romain Guy (Google) wrote: > > Add this flag to your window in onCreate(): > > http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE > > On Thu, Jan 12, 2012 at 1:48 AM, Michael Banzon <[email protected]> wrote: > > On Thu, Jan 12, 2012 at 10:13 AM, Tom Uhl <[email protected]> wrote: > >> Is there a way for an app to disable the new built-in-screenshot > >> function in ICS? > > > > I don't think there is. If there is - I'm guessing you're trying to > > "protect" something - please keep in mind that the user can also grab > > screenshots through USB-debugging or through HDMI. > > > > -- > > Michael Banzon > > http://michaelbanzon.com/ > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > -- > Romain Guy > Android framework engineer > [email protected] > > On Thursday, January 12, 2012 9:04:15 AM UTC-8, Romain Guy (Google) wrote: > > Add this flag to your window in onCreate(): > > http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE > > On Thu, Jan 12, 2012 at 1:48 AM, Michael Banzon <[email protected]> wrote: > > On Thu, Jan 12, 2012 at 10:13 AM, Tom Uhl <[email protected]> wrote: > >> Is there a way for an app to disable the new built-in-screenshot > >> function in ICS? > > > > I don't think there is. If there is - I'm guessing you're trying to > > "protect" something - please keep in mind that the user can also grab > > screenshots through USB-debugging or through HDMI. > > > > -- > > Michael Banzon > > http://michaelbanzon.com/ > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > -- > Romain Guy > Android framework engineer > [email protected] > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

