I'm building an Android mobile application using HTML, CSS and JavaScript (jQuery) which will be compiled using Phonegap.
Is there any way to take a screenshot of everything on the screen at that moment and store it on your phone?
Many thanks
I'm building an Android mobile application using HTML, CSS and JavaScript (jQuery) which will be compiled using Phonegap.
Is there any way to take a screenshot of everything on the screen at that moment and store it on your phone?
Many thanks
I actually solved this by creating my own plugin for PhoneGap.
https://github.com/jcrowson/Android-Phonegap-Screenshot-Plugin
It uses Android native Java code to capture the WebView.
This is not exactly what you are asking for, but it might help:
Using an app like ScreenShotUX (which I have used minus paying) from here, the user can merely shake the phone while in your app, and the app can fetch the screenshot from a defualt location like /mnt/sdcard/ScreenCapture/
With the screen shot taken for you, you can then use PhoneGap and javascript to read it, and probably even send it to a server. (see this plugin here for using phonegap to read form sdcard)
Might be easier than what you are asking for.