| Author |
How to capture the current screen from device
|
Vaishu Mol
Greenhorn
Joined: Jan 21, 2010
Posts: 5
|
|
Hi friends,
Here is my xml coding.
Im displaying image and text on device. And i would like to capture the screen on my device and would like to send email the image+text.
How to capture the screen with image and text?
Please help me friends.
Thanks in advance.
|
 |
Monu Tripathi
Rancher
Joined: Oct 12, 2008
Posts: 1365
|
|
You can use the view.draw(canvas) method to make the view draw whatever it is displaying, onto a canvas.
Create an empty bitmap, set it on a new canvas and pass this canvas to a view. In your case this, "view" will have to be the root view(the FrameLayout, I think).
See if the following threads can help:
capturing image on canvas
taking a screen shot of whatever is drawn on the view
Hope that helps...
|
[List of FAQs] | [Android FAQ] | [My Blog] | [Samuh Varta]
|
 |
Bill Mote
Ranch Hand
Joined: Feb 04, 2010
Posts: 44
|
|
You can capture the screen output on your PC by enabling USB debugging. Instructions here: Android Development http://goo.gl/lbH9
dot
|
 |
 |
|
|
subject: How to capture the current screen from device
|
|
|