this is a demo about how to use broadcast to force user offline.
Java
BroadcastForceOffline
this is a demo about how to use broadcast to force user offline.
There is a big issue in this project.When you set target SDK to 24,the alertdialog won't appear in AVD monitor. You should set targetSDK to 22.