Sunday, October 31, 2010

[android-developers] Re: render an activity to an image file.

Never tried it, but first thing I would try is to just make a Bitmap
the size of the screen, construct a Canvas using the constructor that
takes a Bitmap, then get the Window from the Activity, then get the
decor View from that, and pass the Canvas to its onDraw.

On Oct 30, 8:58 pm, sdphil <phil.pellouch...@gmail.com> wrote:
> i know you can't take a screenshot without having root access, but is
> there a way to render an activity and all the contents to an image
> file?
>
> anyone have code to do this?
>
> it would be nice to have any dialogs, menus, etc... as well, but not
> required.
>
> tia.

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


Real Estate