I would like to make an application on Honeycomb that would be able to
capture screenshots. I know that the solutions for previous Android
versions (directly accessing framebuffer) do not work anymore. I found
out that framebuffer is blocked and it might be possible to capture
screenshots using libsurfaceflinger. However, I'm not experienced with
C++ and I'm not even able to compile a cpp file with this library
included. I suppose I should add header files as well, am I correct?
So, the question is where can I get them and how should I attach them
to my ndk libraries?
If anybody could give me any hints on how it should be done or where
can I find some information concerning this subject, I'd be grateful!
Kacper86
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
First of all, thank you for your response!
Secondly, I would like to clarify my task. I'm aware that normal
Android applications (from Android Market) are not supposed to capture
screenshots. However, this is not the case, because my application
will be available only for specific clients (and specific devices).
And they understand that this application would have to be signed by
manufacturers certificate (or device would have to be rooted) in order
for this to work.
Moreover, we are also aware of the fact, that this functionality might
break as a result of Android update/native API change.
To sum up, I understand that I won't be able to make universal
solution that will work on every Android platform and on every device.
But for starters, I would like to make an application that will work
on one tablet from one manufacturer. And to be honest I probably
wouldn't research this subject I hadn't found an application that
captures screenshots on a rooted, honeycomb tablet already.
And as for native methods for SurfaceFlinger, do you think that there
would be differences between the same version of Honeycomb (3.1) but
different manufacturers of tablets?
On 28 Lis, 17:05, David Turner <di...@android.com> wrote:
> Applications are not allowed to take screenshots for security reasons.
> Only user-initiated actions are allowed to do so (e.g. there is a key-chord
> on ICS to do just that, or through ADB).
>
> Besides, there is no stable native API for SurfaceFlinger to do that.
>
>
Hi!
First of all, thank you for your response!
Secondly, I would like to clarify my task. I'm aware that normal
Android applications (from Android Market) are not supposed to capture
screenshots. However, this is not the case, because my application
will be available only for specific clients (and specific devices).
And they understand that this application would have to be signed by
manufacturers certificate (or device would have to be rooted) in order
for this to work.
Moreover, we are also aware of the fact, that this functionality might
break as a result of Android update/native API change.
To sum up, I understand that I won't be able to make universal
solution that will work on every Android platform and on every device.
But for starters, I would like to make an application that will work
on one tablet from one manufacturer. And to be honest I probably
wouldn't research this subject I hadn't found an application that
captures screenshots on a rooted, honeycomb tablet already.
And as for native methods for SurfaceFlinger, do you think that there
would be differences between the same version of Honeycomb (3.1) but
different manufacturers of tablets?
On 29 Lis, 17:44, David Turner <di...@android.com> wrote: