add API to query battery status on Android