How Eclipse Android DDMS implements "screen capture",

Does anyone know how eclipse android DDMS implements screen capture?

Update:

Because I want to capture the full screen of an Android device that launches the application using android google map v2. If the application uses android google map v1, it is normal to capture a screenshot. But it returns a black screen if goole v2 android card is used.

Uou can see the problem from the black screen

But I can capture a screenshot (even android google map v2) from DDMS. This is the reason I want to know how to capture a DDMS capture.

See how DDMS takes a screenshot using /system/bin/screencap or /system/bin/screenshot , but it seems to need root privileges.

-2
android eclipse
Feb 04 '13 at 9:47
source share
1 answer

I think you can find your answer in com.android.ddmuilib.ScreenShotDialog code.

First get the source code:

 git clone https://android.googlesource.com/platform/sdk 

DDMS sources in: sdk/ddms

ScreenShotDialog in: sdk/ddms/libs/ddmuilib/ ...

(or right here )

+2
Feb 04 '13 at 13:27
source share



All Articles