6.10.10

Workaround: Android DDMS: "Screen not available" for screenshot

Been working more with DDMS as a screen capture mechanism (was using Alt+PrntScrn method before) and have found an alarming trend:

Sometimes, when using the "Device Screen Capture" mechanism, I get the following:

It seems to happen more when I am on certain, custom views that deal with multiple layers of transparency. Usually i could just hit the "refresh" buttons a few times and work past it.

When hit with a more persistent "Screen not available" situation, i was stuck. 15 refreshes never resulted in a capture. Closing and reopening had the same result.

Finally, on a whim, i hit the rotate keys while the focus was on the emulator (either "7" or "9" on the numeric keypad), and then the "refresh" button in DDMS. To my amazement and relief, the capture went through. Now when a capture repeatedly fails, I typically rotate the orientation in the emulator and THEN hit capture. For whatever reason, this seems to do the trick. *shrug*

1 comments:

  1. Thanks for the tip!
    I solved this in another way: deactivating and reactivating USB debugging in Settings/Applications

    ReplyDelete