[android-developers] Re: Ways to capture the content of the screen / inject keypresses?

2008-09-12 Thread Malcolm Reynolds

On Thu, Sep 11, 2008 at 11:03 PM, hackbod [EMAIL PROTECTED] wrote:

 For security reasons, applications are not allowed to get screen shots
 of the display or inject key events in to other applications.


Obviously I understand the security implications that an application
like this would have, but pretty much every other smartphone-type
platform has security frameworks in place to make this possible and
safe. Eg on the Blackberry a user has to manually go to advanced
options and change the permissions for event injection and screenshots
before the application can run.

I've filed this on the issue tracker, I hope this is looked on as a
sensible idea.. it would seem a pity for a platform which is in
general very sophisticated to be unable to host an application which
is possible on Blackberry, Windows Mobile, Symbian and iPhone..

Malcolm

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: apps

2008-09-12 Thread Malcolm Reynolds

On Fri, Sep 12, 2008 at 4:31 AM, beflok [EMAIL PROTECTED] wrote:

 hmm... is there any way around this? is there a way to make an
 executable into a java script?


There are no ways to run native windows code on mobile Java devices.
Unless you count writing an interpreter/emulator along the lines of
WINE for android (this would be an extraordinary task, pretty much a
lifetime's work) or running the app on a windows box and connecting to
that using an android VNC client, but both these ideas are pretty
terrible. If what you have is just the compiled program, and no access
to the source, then I'm afraid you are out of luck.

Malcolm

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Ways to capture the content of the screen / inject keypresses?

2008-09-11 Thread Malcolm Reynolds

Hello all,

I hope this isn't a stupid question, but I've looked through the API
reference and can't seem to find what I'm looking for..

Basically I am wondering if there is any way to, from a background
application, save the current contents of the screen as a Bitmap, and
if there is a way to inject keypresses into the current running
application (again, with a background application doing the
injecting). I notice there are constants called INJECT_EVENTS and
READ_FRAME_BUFFER in the android.Manifest.permisssion class, which
sound like the facility is available to do what I need, but I can't
see where in the main API you can perform these tasks. Can anyone
point me in the right direction, or are these constants part of the
internals of android, and so not available for regular apps to use?

If anyone is familiar with RIM's Blackberry API, then essentially I am
looking for an equivalent to their method Display.screenshot() and to
the class EventInjector, plus its various inner classes.

Thanks in advance!

Malcolm

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---