![]() |
FMX Android - connect service
Hello,
how to connect to the data mobile network. Wifi connection is simple and I found help.
Delphi-Quellcode:
Thank you
procedure TfrmMain.ConnectWifi;
var WiFIServiceNative: JWifiManager; begin WiFIServiceNative := TJWifiManager.Wrap(TAndroidHelper.Context.getSystemService(TJContext.JavaClass.WIFI_SERVICE)); if WiFIServiceNative.getWifiState < 2 then begin if WiFIServiceNative.setWifiEnabled(true) then begin WebNavi; // procedure webbrowser navigate end; end; end; procedure TfrmMain.ConnectDataMobile; begin DataServiceNative := ????? ????????????????? end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:24 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz