Android Question How do I force bluetooth to enable and start discovery via click?

Roy Raymundo

Member
Licensed User
Longtime User
My activity enables bluetooth every time it loads and search for device a whenever I click a menu in the Menu button. But when I disable the bluetooth via turning it off manually in my Android phone, and then click the "Connect via bluetooth" again in my home menu, it will just display "Error starting discovery process". How will I force it to enable bluetooth again via click of that option in home menu, and to start discovering devices again. Does it has to do with :
Admin_StateChanged(admin.STATE_ON,0) ?
 
Top