In some cases, after trial and error, I had to add up to 3 secs.

On Apr 3, 2:28 pm, SJ <[email protected]> wrote:
> Thanks Diego.
> (Actually Im using your approach with Eclipse but on MAC. Works well.
> But not manage on Win.)
>
> MonkeyRunner.sleep(1.0)
> result = device.takeSnapshot()
> MonkeyRunner.sleep(1.0)
>
> This made me perfect screenshot.
>
> On Apr 2, 10:43 pm, Diego Torres Milano <[email protected]> wrote:
>
>
>
>
>
>
>
> > Add more delay to see it this solves the problem.
>
> > On Apr 2, 1:56 pm, SJ <[email protected]> wrote:
>
> > > I have also seen not 100% perfect screenshot.
> > > There is only one function in Monkeyrunner to take Snapshots:
>
> > > com.android.monkeyrunner.MonkeyDevice.takeSnapshot
> > > Gets the device's screen buffer, yielding a screen capture of the
> > > entire display.
>
> > > Which function have you mention?
>
> > > On Mar 31, 2:31 am, lbendlin <[email protected]> wrote:
>
> > > > Are you taking the screenshots from the framebuffer? You may want to 
> > > > use a
> > > > more higher level function that will only execute when the whole screen 
> > > > is
> > > > blitted.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to