VOTG
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Mobile » Android
 
RSS feed
 
New topic
Author

How to capture the current screen from device

Vaishu Mol
Greenhorn

Joined: Jan 21, 2010
Messages: 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
Ranch Hand

Joined: Oct 12, 2008
Messages: 949

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]
Bill Mote
Greenhorn

Joined: Feb 04, 2010
Messages: 11

You can capture the screen output on your PC by enabling USB debugging. Instructions here: Android Development http://goo.gl/lbH9

dot

 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Mobile » Android
 
RSS feed
 
New topic
hibernate profiler