If you can't do what you want without rooting your phone or reading the 
process list using Runtime.getRuntime().exec(), then you might want to 
rethink things ... you're kind of in unsupported/uncharted territory.

Just a suggestion ...

Cheers,

Richard


On Wednesday, September 18, 2013 2:21:10 AM UTC-7, 12169 wrote:
>
> Hi,
>
> 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.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to