I have a prototype Android app that is listening mobile function state continuously like Hotspot. For bluetooth detect, I am using registerContentObserver() to get the latest state and it will notify me in custom ContentObserver. 
So for Hotspot,
- How can I detect hotspot on/off
 - Check any device connected through hotspot or not
 
Thanks in advance.