Android screen capture delay due to writing data in the file
I have a rooted device and i successfully capture the screenshot of
current screen.and use the below code
Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new
DataOutputStream(process.getOutputStream());
os.writeBytes("/system/bin/screencap -p " + path + "; \n");`
but in the command i provide the path where i want to save the file and
system take time to write the image in the file. so I want to know can we
directly take the image data from process in the form of bytes because I
want to send the current image to the server immediately.
No comments:
Post a Comment