<div dir="ltr">Hello,<div><br></div><div><div>I've been trying to get the current Android activity using Pyjnius however its autoclass function doesn't recognize my custom Java class.</div><div><br>I followed the guide in the Mercurial repo and with minor modifications I can use the built-in Java/Android classes just fine, however to do anything meaningful on Android a reference to the current activity is needed.</div><div><br></div><div>What I did was simply extending the base QtActivity class, using it as "entry point" in the Manifest file and trying to get it with Pyjnius's autoclass however it does not find my custom class. Uppon some research I think this the root of the problem: <a href="https://bugreports.qt.io/browse/QTBUG-40494?focusedCommentId=251955&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-251955">https://bugreports.qt.io/browse/QTBUG-40494?focusedCommentId=251955&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-251955</a> however I've no idea how work around it (even If I modify the Qt source code and patch their JNI_OnLoad somehow to use FindClass to find my custom class I'm not sure it would be in the JNIEnv that is acquired in the function in fake_sdl.cpp)</div><div><br></div><div><br></div><div>A nicer solution would be to use QtAndroidExtras however it is not supported in PyQt. Are there plans to do it? It would help developing applications immensely on Android.<br></div></div></div>