Commit Graph

11 Commits

Author SHA1 Message Date
2fbb52b708 Actually fix the issue and not only turn off warning 2024-06-27 22:10:05 +02:00
12d2ffd1fe Fix warning with new android compiler 2024-06-27 21:14:44 +02:00
9fbb8dcbc1 changes for qt6-Android
- QT += gui
- QT += androidextras ==> only for Qt5
- QAndroidJniEnvironment ==> QJniEnvironment
- QAndroidJniObject ==> QJniObject
- QtAndroid::runOnAndroidThread ==> Qt5
- QNativeInterface::QAndroidApplication::runOnAndroidMainThread ==> Qt6

Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2024-04-04 17:13:17 -04:00
65e0713bc3 Android: Call nsd.stopServiceDiscovery() when going to sleep
If Android is on it's way to suspend when stopBrowser() is called, we need
to call nsd.stopServiceDiscovery() synchronously to force it to run
before the device goes to sleep.

Was an issue on Android 10 on Levono Tab M10 FHD Plus
TB-X606FA_S300554-220630_BMP
2023-05-22 15:48:52 -04:00
6df17b9760 AndroidNds - add interface parameter to startServicePublish()
This is just to fix compiling on master, interface is not actually used.
2023-05-22 11:34:01 -04:00
da386b2ac3 Android: Call nsd.unregisterService() synchronously when going to sleep
If Android is on it's way to suspend when stopServicePublish() is called,
we need to call nsd.unregisterService() synchronously to force it to run
before the device goes to sleep.  If instead it is scheduled to run in the
Android thread, it will not run until the device is woken back up.
2023-05-22 09:08:15 -04:00
f89c73695e Android: Fix missing or corrupt service name
The publish service name and type are passed to startServicePublish() as
char pointers.  startServicePublish() calls runOnAndroidThread which asks
the java code to run registerService().  If name and type are objects on
the stack, they could get freed  / deleted before the registerService() is
run in the java thread which would cause registerService() to use deleted
objects.  Fix --> make permanent objects for name and type.
2023-05-22 09:08:15 -04:00
61f5676248 also set pointer size to 64bit fixed on the C++ size
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2023-05-22 09:08:15 -04:00
2a7a8fb9d8 Use jlong instead of jint for intptr_t
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2023-05-22 09:08:15 -04:00
3f5650388c use proper pointer type
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2023-05-22 09:08:15 -04:00
24debe31b0 Move Android part to use native Android mDNS API
Signed-off-by: Jonathan Bagg <drwho@infidigm.net>
2023-05-22 09:08:15 -04:00