Please don't do this.  I expect that we won't be using the bitmap from
there, which means you will end up with a blank thumbnail.

On Mon, Apr 16, 2012 at 11:26 AM, Brett <bnotting...@gmail.com> wrote:

> Actually I found the solution, there are actually two.
>
> If you call:
>
> getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
>
> Then the preview image will always be black in the task switcher
> unless you override the activity method:
>        public boolean onCreateThumbnail(Bitmap outBitmap, Canvas canvas)
>
> This will let you provide any thumbnail that you want when your task
> goes to the background.
>
> On Apr 12, 5:58 pm, Brett <bnotting...@gmail.com> wrote:
> > In ICS especially, there is a new was to switch tasks like the old way
> > of holding down the home key.  Now you see a list of your recent tasks
> > with their corresponding images of the last view you were on.
> >
> > Is there any way to programmatically update this image for your task?
> > I have a situation where I get background information and want to
> > update the view.  I haven't been able to find anything on how this
> > image is populated online.
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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