This does it:

Window win = getWindow();
win.addFlags(WindowManager.LayoutParams.FLAG_SECURE);

-- K

21 января 2012 г. 1:33 пользователь tegbird <[email protected]> написал:

> Hi Daz,
> I am facing the same problem. Did you find any solution. It would be
> great help if you can provide any guidance.
> Thanks in advance.
> Tegbir
>
> On Dec 17 2011, 10:55 am, Daz <[email protected]> wrote:
> > Hi Diane,
> >
> > Sorry I should have been more specific but this was my 3rd attempt at
> > asking the question, the previous 2 not making it past the "New member
> > moderation". I didn't want to waste too much time as I was unsure the
> post
> > would appear.
> >
> > Basically it is exactly as Zsolt says. My app should not have its
> contents
> > visible unless a valid password has been entered. I understand that
> > physical access to the phone is required to see the thumbnails but the
> fact
> > is that the data should not be accessible outside the app at all.
> >
> > As a user as well as a dev, I may pass my phone to another person to
> show a
> > photo, web page etc and tablets in my household tend to be partly
> communal
> > for looking up web sites etc. At present I have to ensure that the app
> has
> > been "swiped away" from the recent apps list before I allow anybody else
> > access.
> >
> > So back to the original question. Is there a way to prevent the screen
> grab
> > or at the very least, an override I can use to hide the sensitive data
> > manually before the screen grab is taken?
> >
> > Thanks for any help anybody can give.
> >
> > Daz
> >
> > p.s After my first post I am now being spammed. "We saw your post on
> google
> > groups, would you like to ....."  Any tips to prevent this?
>
> --
> 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
>

-- 
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

Reply via email to