Hi Yogi, You have to open the files as normal files, and read them. For example, you can use BufferedReader and use br.readLine();
-Durga On Mon, Apr 23, 2012 at 11:26 AM, Yogi <yogesh.th...@gmail.com> wrote: > Hi, > > I have a power supply driver and its properties are exposed > under*/sys/class/power_supply/<chip_name>/.. > * It has list like *voltage_now, health* etc etc. If I do a '*cat > voltage_now*' I can get the needed data. > > From user space I want to call an API which can give me access to reading > the battery properties. I am not aware of such interface. I dont want to do > '*cat*' all the times. > > Can someone provide inputs please? > > Regards, > > Yog > > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel -- Regards Durgadoss -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel