@jsulm said in Qt 6.8.0 - Replacement for QtNative.activity():
@NaLogo Take a look at https://forum.qt.io/topic/159644/qt-6-8-emailsender-activity-is-not-public-in-qtnative-cannot-be-accessed-from-outside-package/6
Like the user in that thread you linked pointed out, it doesn't work like that. The reason for that being what I wrote in my original post: The scope of the method QtNative.activity() in QtNative.java was changed from public to private (by removing the scope) between Qt 6.5 and Qt 6.8
@Parvathy2020 said in Qt 6.8.0 - Replacement for QtNative.activity():
Hi @NaLogo , If you got solution for the above mentioned problem , can you please provide the changes you made to resolve the issue. Thanks in advance !
I haven't tried it yet, but it probably requires an additional call that will pass the activity from the main app to the native class (storing it in a variable, of course) before calling the method you actually want. I'll post the results here when and if I get around to trying it.