how to display a short animation when connecting th开发者_C百科e plug charge & when unplug the charger ?
To detect changes in charger connection state, use CTelephony::GetIndicator()
to get notifications on CTelephony::EBatteryInfoChange
events. Of particular interest are TBatteryStatus
changes in the TBatteryInfoV1
object.
To get started with animation, search the SDK documentation for "animation".
精彩评论