tags:

views:

68

answers:

2

I'd like to take screenshots on my android phone. I'm an app developer and have a pretty good understanding of the regular API, and I know this steps out of the "regular" thing quite a bit.

I would have root access.

I've seen a few apps that do this. I'm just wondering how one goes about doing it. Anybody know the general direction I should be looking in?

A: 

drocap2 is usually what I have seen used (free app found in market). Alternatively, if you would like to take a screenshot from your PC, I know Motodev Studio has a plugin for this in their IDE (not sure if it is available for other eclipse based IDEs).

numo16
I mean more like how would I do it in an app I'm writing, but this is definitely a good place to start looking around. At the end of the day, there's a good chance I'm just going to hire somebody to do that part of the app.
kāgii
A: 

Have a look at framebuffer.c in the adb (phone side) sources, which appears to be what the DDMS screenshot capability uses. You need to be uid root or gid graphics due to the permissions on the framebuffer device - presumably the adbd is the later.

Its in projects / platform/system/core

Direct link to the file:

http://android.git.kernel.org/?p=platform/system/core.git;a=blob_plain;f=adb/framebuffer_service.c;hb=HEAD

Chris Stratton
That's an interesting idea. I'll take a look.
kāgii