|
can we in any way extract battery percentage of the laptop in our java program...i am doing this search on net since last week and no results...please help me regarding this problem...
|
|
|
|
|
I do not think you can do it directly in Java. The information is provided by this WMI class[^] of the Windows API. You would need to write some C/C++ code to get the information into a DLL, and use JNI to access that from your Java code.
One of these days I'm going to think of a really clever signature.
|
|
|
|