package Ġcom . sh un li . receive all broadcast . broad list Ċ Ċ import Ġandroid . content . Broadcast Receiver Ċ import Ġandroid . content . Content Values . TAG Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . content . Intent Filter Ċ import Ġandroid . util . Log Ċ import Ġandroid . widget . Toast Ċ import Ġandroid . os . Bundle Ċ import Ġjava . lang . Exception ĊĊ Ċ class ĠPower Receiver Ġ: ĠBase Broadcast Receiver () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġregister Actions ( filter : ĠIntent Filter ) Ġ{ ĊĠĠĠĠĠĠĠ Ġfilter . addAction ( Intent . ACTION _ B ATTER Y _ CHANGED ); ĊĠĠĠĠĠĠĠ Ġfilter . addAction ( Intent . ACTION _ B ATTER Y _ LOW ); ĊĠĠĠĠĠĠĠ Ġfilter . addAction ( Intent . ACTION _ B ATTER Y _ OK AY ); ĊĠĠĠĠĠĠĠ Ġfilter . addAction ( Intent . ACTION _ POWER _ CONNECTED ); ĊĠĠĠĠĠĠĠ Ġfilter . addAction ( Intent . ACTION _ POWER _ DIS CONNECTED ); ĊĠĠĠ Ġ} Ċ }