(04-29-2018, 06:50 AM)BartKindt Wrote: Remy, There is no unit in Delphi 10.2 which contains access to the Android JNetworkInterface.
Googling, I found a unit, part of another program, which looks like it may work:
https://github.com/LongDirtyAnimAlf/Delp...ddress.pas
Problem is, I have no idea how to call this. As far as I can understand, it should be called by something like this:
Code:var LNetworkInterface: JNetworkInterface;
LNetworkInterface := TJNetworkInterface.Wrap(TAndroidHelper.Context.getSystemService(TJContext.JavaClass.xxxx ???
But there is no JavaClass which contains anything like 'NetworkInterface'.
Any idea how to proceed?
PS: "such as getifaddrs() (...but there is a 3rd party implementation at https://github.com/morristech/android-ifaddrs)." is in C code, which I cannot use..
Many thanks for your patience...
Bart
IdTCPClient on Android: Connecting to non-active network
|
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)