Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

My application crashes when battery meter is 0 and device OS can not run application further.

I want to display user a message "Low Battery" in an application before it crashes.

As Moto V3c device does not support "IBattery", how an application detect low memory status for devices such as Moto V3c through code?

Further, before application crashes, application receives below event
ecode=1(EVT_APP_STOP), wparam=0, dwparam=49485456, so,
can mentioned event check should be a valid criteria to decide that application stop because of low battery condition?

I also tried to get battery status on motorola V3C by using IBattery_GetStatus, but it gives Class not supported exception, Is there any other way to get the status of the battery?

I also tried to get battery status on motorola V3C by using IBattery_GetStatus, but it gives Class not supported exception, Is there any other way to get the status of the battery?