Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   Delphi FMX Android - connect service (https://www.delphipraxis.net/194766-fmx-android-connect-service.html)

danten 2. Jan 2018 18:51

FMX Android - connect service
 
Hello,
how to connect to the data mobile network.
Wifi connection is simple and I found help.

Delphi-Quellcode:
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;
Thank you


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz