File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to capture the current screen from device

 
Vaishu Mol
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1369
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Bill Mote
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can capture the screen output on your PC by enabling USB debugging. Instructions here: Android Development http://goo.gl/lbH9

dot

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic