This came up before on this list (use search).
Giving arbitrary applications the ability to take screenshots is
considered by Android team to be a security risk.
There are applications in Market that can take screenshots, but they all
require root-ed firmware. However, supposedly on some phones these apps
do work without root access.
-- Kostya
09.09.2010 20:01, Jeremy Wadsack ?????:
I find it surprising that the Android system can't do this natively.
It's built into the iPhone (although it's not intuitive or
discoverable and possibly not programmable). That said, the solution
Renas provides in that thread is straightforward and easy. I'll keep
that as a snippet.
Following on your point in that thread, doing direct screen-shot
comparison between "expected" and "actual" will rarely match in any
environment. For this case it will absolutely /not/ match because (1)
the compression is JPEG and (2) Android adapts display layout for the
device (and I'm not sure this is determinate). For testing you need to
have some tolerance of difference between the screen shots. In my
experience, I've found this is the kind of thing that humans are much
better at than computers. We can easily see if the screen is "right"
and whether it "makes sense". Computers, at best, can tell us that
there is some amount of "difference".
--
Jeremy Wadsack
On Thu, Sep 9, 2010 at 8:24 AM, Fabrizio Giudici
<[email protected] <mailto:[email protected]>>
wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 9/9/10 16:20 , Lidia G wrote:
> Thank you
>
Have a look at this thread:
http://groups.google.com/group/robotium-developers/browse_thread/thread/c5cf28ef88918d7d/38a80fd483c114df?hl=en&lnk=gst&q=Need+help+to+take+screen+shot#38a80fd483c114df
<http://groups.google.com/group/robotium-developers/browse_thread/thread/c5cf28ef88918d7d/38a80fd483c114df?hl=en&lnk=gst&q=Need+help+to+take+screen+shot#38a80fd483c114df>
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici
<http://java.net/blog/fabriziogiudici> - www.tidalwave.it/people
<http://www.tidalwave.it/people>
[email protected] <mailto:[email protected]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyI/DUACgkQeDweFqgUGxc3fwCeKYHbPO3l7clkKwzF64XT0AOz
ldsAn0s9XYs0VGptQ6og30scPUv4bWUi
=+rLV
-----END PGP SIGNATURE-----
--
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
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
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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