Taking screenshots for Ouya store submission

[quote=“thomasvg50,post:20,topic:324976”]

DDMS didn’t really work for me - it consistently crashed after 1 succesful screenshot, each time requiring me to reconnect to my ouya to take a new one.

Since this might be useful for other people, i’ll explain how i ended up solving this. Even though i never needed the android SDK during development (just Corona SDK and a dropbox app on the ouya was enough), i ended up needing the SDK for the screenshots after all

So this is how i solved it:

  • i installed the SDK

  • i connected my Ouya using a micro-USB cable and turned ADB over Network on on the console

  • i installed the OUYA drivers on my pc (manual can be found on the ouya site as a youtube clip)

  • when the pc and the ouya were connected over ADB, i made a batch file containing this code:

    rem OUYA_ScreenSot.bat adb shell /system/bin/screencap -p /sdcard/img.png adb pull /sdcard/img.png ouya-%RANDOM%.png timeout /t 2 adb shell /system/bin/screencap -p /sdcard/img.png adb pull /sdcard/img.png ouya-%RANDOM%.png timeout /t 2 adb shell /system/bin/screencap -p /sdcard/img.png adb pull /sdcard/img.png ouya-%RANDOM%.png timeout /t 2 …

  • copy the three recurring lines in this code about 100 times to make a large file

  • I started the game using the controller on the ouya, and doubleclicked the bat file

  • i played the game with a few friends for about 3 minutes

The bat file will take a screenshot on the ouya, and download it to the pc, and repeat this every 2 seconds. The screenshot will be stored as a png with a random file name, located in the folder where the bat file is. You will end up with about 100 screenshots to choose from. Repeat if needed.

The Ouya will behave laggy during this procedure. If it gets really bad, you might want to increase the interval to more than 2 seconds.

Now to find out how to record video…[/quote]

Jeez, thats a lot of work. I’m surprised that ddms crashed after taking a screenshot. I have never seen that happen.

DDMS has a new version called “monitor” with the latest Android SDK tools.  It might behave better than DDMS and it can capture screen shots.

Rob

Interesting, thanks for the info.

Thats what you get for not having time to keep up to date with developer related tech (ish) news :slight_smile:

Will check this new tool out tomorrow.