How do I get estimated battery life on Windows Phone 7
Back in the good ol' Windows Mobile day (CE based) one good get a rough estimate of battery life using the CE CoreDll.dll. Well sometimes at least depending on your hardware. This was exposed via GetSystemPowerStatusEx.
WP7 be开发者_C百科ing SilverLight based I'm assuming these sorts of Interop approaches will no longer work. Is there an API that exposes power status info? I've done a quick search and browse but didn't see anything.
Currently there is no API method that will return the battery life.
精彩评论