How can enable HotSpot on android device by delphi code

  

By this delphi code I can enable wifi on android device.
var WiFIServiceNative: JWifiManager;

begin
WiFIServiceNative :=
JWifiManager.Wrap(TAndroidHelper.Context.getSystemService(TJContext.JavaClass.WIFI_SERVICE));
if Assigned(WiFIServiceNative) then
TJWifiManager.JavaClass.WIFI_STATE_ENABLED
end;

How can enable hotspot by delphi code.

Comments are closed.