I'm a newbie in Android. I using Nexus7 reference device and I've downloaded the full source code from source.android.com. I have an engineering system image and I can make a system application.
/system/bin/screencap
utility is good for me to capture screen.
I want to get a pixel data using screencap.cpp directly in my application.
When I used to screencap utility, the process is like below.
- capture screen and save an image.
- Open image file
- decodefile to bitmap
- get pixel data(int array) from bitmap
I want to remove the step 1, 2 and 3. Just call api to get pixel data of a screen directly, How can I do that?