Re: [android-developers] uevent handling in user-space

2011-07-18 Thread Durgadoss Ramanathan
Hi, Android has a UEvent Listener in the Application Framework. This receives the UEvent from the Kernel. For BatteryStatus: You may want to look at frameworks/base/services/java/com/android/server/BatteryService.java Similarly, also at BatteryServer.cpp(corresponding JNI..) Basically the batter

[android-developers] uevent handling in user-space

2011-07-18 Thread Hemant
I want to handle uevent in user-space mainly for battery status changed in my application. Can this be done using C program? Can this be done by calling a select() on one of the sysfs which indicates change in battery voltage? How Android polls uevents from kernel? Br/ Hvr -- You received this m