Key capture background

by coder_sym » Fri, 20 May 2011 09:30:34 GMT

Sponsored Links

I saw a post saying key capturing in the background is not possible ..
is this still the case? or was thre any recent changes to make this
happen ? I wonder why this capability is closed when there are lot of
genuine use cases. Is it possibel to do the same with some special



Re: Key capture background

by Mark Murphy » Fri, 20 May 2011 18:10:11 GMT




You are welcome to write your own mobile operating system that enables
spyware to monitor key presses from other applications.

Mark Murphy (a Commons Guy)  |  | 

Android App Developer Books: 


Sponsored Links

Other Threads

1. No measured width and height for inlfated layout

Hello to all,

I need to hide/show a Button whether a ScrollView needs to scroll or
not. (The same behavior as the ScrollView's ScrollBar).

I've done this working with the ScrollView's computeScroll() method,
in order to compare it's height, with the child's one, then according
to that condition hide/show the Button. But I'm facing a repaint issue
since this is made once the layout has been set by

So now I'm trying to inflate the layout that contains this ScrollView,
perform this height comparison before the Activity.setContentView()
it's called.

The problem is that the LayoutInflater inflates the layout without any
measure (width = 0 and height = 0).

This is how I'm inflating the layout:

LayoutInflater inflater = getLayoutInflater();
LinearLayout layout = (LinearLayout) inflater.inflate(R.layout.main,

Is there a way to retrieve the Activity's first ViewGroup in order to
inflate my layout with a parent? I think the issue is related with

Thanks a lot in advance,



2. Compiling python interpreter

Hey everyone.

I know and have read about the ASE application for Android, which can
be found here:

But what I am searching for, is information on compiling the Python
interpreter into the actual platform.  Does anyone know of anywhere
with the cross-compiling info on this into Android?


3. How to delete directory from SD card on uninstall?

4. Implementing a Service - Call down to super?

5. Image viewers on android phones not always the best experience?

6. How to know whether bluetooth is enabled/disabled

7. ContextMenu Problem - how to resolve these menu items