I have an app that communicates with Windows PCs using UDP packets. It has been working successfully for over a year on Android devices that are 5.0 and earlier. Then I discovered that newer Androids running later versions than 5.0 did not work correctly anymore. The first problem was that button views were always on top. After looking at the forum here, I followed the advice and re-coded to make the buttons not visible in addition to using the "bringtofront" method.
This seems to work okay... but then I discovered a bigger problem: the UDP_PacketArrived event never triggers when using Android 5.0.2 or later. I can run the exact same code on Android 5.0 and everything works great; both using debug and using release as well as without any B4A bridge connection. I check to make sure that the UDPSock.IsInitialized=true, I know the udp packet is being sent on the port from the Windows PC... but the UDP_PacketArrived never triggers -- but only when using Android 5.0.2 or higher.
Is there some network behavior that changed? Permissions needed? Ports blocked (all my port numbers are at the very high end: 65535 and down to 63487... could that be a problem? Is it a security issue in the SSL layer of the newer Android OS?
I can post code, but like I said it works fine under Android 5.0 and earlier.
Thanks,
J. S. Hart
This seems to work okay... but then I discovered a bigger problem: the UDP_PacketArrived event never triggers when using Android 5.0.2 or later. I can run the exact same code on Android 5.0 and everything works great; both using debug and using release as well as without any B4A bridge connection. I check to make sure that the UDPSock.IsInitialized=true, I know the udp packet is being sent on the port from the Windows PC... but the UDP_PacketArrived never triggers -- but only when using Android 5.0.2 or higher.
Is there some network behavior that changed? Permissions needed? Ports blocked (all my port numbers are at the very high end: 65535 and down to 63487... could that be a problem? Is it a security issue in the SSL layer of the newer Android OS?
I can post code, but like I said it works fine under Android 5.0 and earlier.
Thanks,
J. S. Hart