0

I have already seen this link to find some solution, but couldn't. The given link is able to take the screen shots which are static (I mean the screen which can stay stable for more time).

But my requirement is to take the screen shots of those screens which are not stable for more time. For example: i want to take the screen shot along with the toast message on the screen and also i want to take the screen shot of a camera surface view.

Is there any way to take screen shots fastly, because while clicking Capture Screen button, the toase message is being disappeared.

Any help appreciable.

Community
  • 1
  • 1
Chandra Sekhar
  • 18,914
  • 16
  • 84
  • 125

2 Answers2

0

Well, there is no way you can speed up the process of taking a screenshot from DDMS. Since I am guessing, you want to capture a Toast message, the best possible solution is to set a longer length for the Toast Message using something like this:

Toast.makeText(getApplicationContext(), "your message", Toast.LENGTH_LONG).show();

And if you do not want a Toast Message to be displayed longer in the final release, you can re-set the length back to Toast.LENGTH_SHORT after you are done taking the screenshot.

Siddharth Lele
  • 27,623
  • 15
  • 98
  • 151
  • Hmmmm... No known method of speeding up the speed of screenshots that I know of. Then the best possible alternatives are either timing the shot precisely. Or record the screen using an app such as this one: https://play.google.com/store/apps/details?id=com.ms.screencastfree#?t=W251bGwsMSwxLDIxMiwiY29tLm1zLnNjcmVlbmNhc3RmcmVlIl0. and then grabbing the frames to your satisfaction. – Siddharth Lele Apr 10 '12 at 13:17
  • The downside is, most of these applications need a rooted device. – Siddharth Lele Apr 10 '12 at 13:19
  • Is there any way that as we run our application it will automatically take each screens until we stop it? – Chandra Sekhar Apr 10 '12 at 13:19
  • actually I don't have any device so that app cannot be installed. – Chandra Sekhar Apr 10 '12 at 13:20
  • A quick search on Google Play suggests that most apps need a rooted device. The lack of a physical device might be a stumbling block in this exercise. – Siddharth Lele Apr 10 '12 at 13:35
0

You could try triggering a screenshot by using a monkeyrunner

Heinrisch
  • 5,835
  • 4
  • 33
  • 43