Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IdTCPClient on Android: Connecting to non-active network
#8
(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
---
Bart Kindt
CEO and Developer
SARTrack Limited
New Zealand
www.sartrack.nz
Reply


Messages In This Thread
RE: IdTCPClient on Android: Connecting to non-active network - by BartKindt - 05-05-2018, 09:02 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)