I noticed that in the native code, the way they capture the
framebuffer data is by calling int fb = open(/dev/graphics/fb0,
O_RDONLY);
I tried to do that with Java, by calling File f = new File(/dev/
graphics/fb0); but I get a file not found exception.
Any idea why?
On Aug 4, 11:58 pm, Kaj
Sorry to be slow, but I thought the code I posted IS trying /dev/
graphics/fb0 and not /dev/fb0. What am I missing?
On Aug 6, 10:53 am, Jason Proctor jason.android.li...@gmail.com
wrote:
on my machine at least, fb0 is in /dev/graphics, rather than /dev.
you might try that...
I noticed that
That's why if you were to write the same code natively in the NDK, you
would get the same result, even though it's native code.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do
I tried this a few days ago, and couldn't find a way to do it in pure
Java. There can of course still be a way to do it, but it does also
look like screenshot apps are using native code as part of their
implementation.
I'm still pretty new on Android development, but I don't think that
the real
4 matches
Mail list logo