tags:

views:

138

answers:

2

Is there way to dump the current screen to a bitmap in Android?

And what about dump screen of other applications? For example, running a service background, the foreground app could send an intent to start the service, and capture the current screen and save as a bitmap.

+1  A: 

Example code at Google Groups.

2nd result for Google: android screen capture code.

mcandre
Thanks mcandre, but is there any way using an Android application to do this?
Johnny
Do you want an app to take screenshots (there are many), or as you asked in the title, do you want code to take screenshots?
mcandre
+1  A: 

It is not currently possible to take screenshots via an Android application.

The only way you can do it is via DDMS in the Android SDK when connected to your computer in debug mode.

There are apps available to take screenshots, but they only work on root devices.

HXCaine
That's too bad :/
Michael Haren