How android translate kernel input events to userland input events锛

by Dianne Hackborn » Fri, 23 Oct 2009 11:56:40 GMT


Sponsored Links
 You can't handle input events in native code, the framework takes care of
that and you will break things if you fight with it (and can't anyway
because you shouldn't have permission to open the driver).
You can look at EventHub.cpp and KeyInputQueue.java to see how the framework
transforms the raw driver events into the MotionEvent and KeyEvent objects
your app receives, but you can't do anything like that in an application.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



How android translate kernel input events to userland input events锛

by ZaichengQi » Fri, 23 Oct 2009 12:33:54 GMT


 Thanks for your help. I know that I can get root privilege only on my
dev phone, and I will not try to really handle these events by myself.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. About the mapview listener

Hi,
I am in trouble now.Is there exist a listener to listen the
scroll,tap,double-tap event on the mapview .I want to get the Geopoint
 through these events.
Please give me some suggestion.
Thanks!!

-- 

2. 杩? problem installing my app on real device

1.Can you see your phone in the devices view? If you can't maybe you should
install a driver first.
2.Maybe you had installed the same app with different sign.At this case you
can uninstall the old app first.
3.Check your setting of setting -> application ->  UnknownSources is ON when
you try to install a debug app on the phone.
4.Have you seen the zipalign.exe part of the SDK document?
Can you show the log of Console?
---------
 android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] alariq
: 201017:59
: Android Developers
: [android-developers] problem installing my app on real device

Hello, All

I am developing application using Eclipse. My friend has HTC Hero and
I am trying to run my application on it, but it says that the
application could not be installed.
I did the steps which are described in Android DevGuide. I.e. exported
my app with the generated key.
Am i right assuming that this is enough? As i understand eclipse signs
and aligns application automatically when selecting Export.

my app uses sdk version 3 i.e. 1.5

Thanks in advance.

-- 

3. N1 Battery + EB

4. Calculating distance between GPS position and way_point

5. Bluetooth Hfg and A2dp profiles are not getting automatically reconnected after android system restart on android2.1

6. problem installing my app on real device

7. R: How to build calculator?