title: Which android classes to use for controlling wifi hotspot?
body: <p>I want to connect a hardware device to an android hotspot.
  My app will setup a hotspot and detect the device connecting.</p>
  
  <p>I've tried using the p2p sample provided with SDK 21 but when the hotspot is enabled the WIFI_P2P_STATE_ENABLED tells me that P2P is disabled:
  <a href="http://developer.android.com/guide/topics/connectivity/wifip2p.html" rel="nofollow">http://developer.android.com/guide/topics/connectivity/wifip2p.html</a></p>
  
  <p>Hence I'm assuming P2P does not equat to android hotspot management, please correct me if I'm wrong.</p>
  
  <p>Can anyone reccomend which library to use to setup and detect connections on a wifi hotspot?
  Thanks,
  Ro</p>