Dispatch KeyDown on Listview

by mihoelzl » Tue, 05 Apr 2011 23:07:32 GMT

Sponsored Links
I want to manually dispatch a key down event in a listactivity. This
works when I just add the Event to the Activity by:

this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,
this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_UP,

I can now see that the cursor goes down and the next entry in the
listview is selected. But only the text is highlighted and not the
background (It stays black). What am I doing wrong? Any Idea?



Other Threads

1. Age of GPS data


When you get GPS location using getLastKnownLocation, is there a way
to check how old the data is, i.e. when the location was last

I'm noticing that sometimes my app is giving me an out-of-date
location (usually because the sky is not visible when the app starts)
- it'd be good to warn the user about this.

It's possible to check the age of the data on the iPhone I believe, is
it possible in Android?


2. quick questions about Skia in android

Anyone knows what the relationship between Skia and OpenGL is?
Is Skia for 2D purpose only?
Is Skia in android accelarated by OpenGL(libagl)?

Andy Quan


3. Android and USB

4. Loading DEX files at runtime from SDCARD - Possible?

5. Security patterns/regimes in Androi

6. Dynamically changing the language at runtime

7. Opening serial device for multiplexing