Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
Qt
QtAndroidExtras
Commits
563a68db
Commit
563a68db
authored
6 years ago
by
Qt Forward Merge Bot
Browse files
Options
Download
Plain Diff
Merge remote-tracking branch 'origin/5.12' into dev
Change-Id: I73c5694e6796273778d5ff27a16fe8ac87d1e2cb
parents
6711472d
e72bba43
dev
5.13
5.13.0
5.13.1
5.13.2
5.14
5.14.0
5.14.1
5.14.2
5.15
5.15.0
5.15.1
5.15.2
6.2
wip/cmake
v5.15.0-alpha1
v5.14.1
v5.14.0
v5.14.0-rc2
v5.14.0-rc1
v5.14.0-beta3
v5.14.0-beta2
v5.14.0-beta1
v5.14.0-alpha1
v5.13.2
v5.13.1
v5.13.0
v5.13.0-rc3
v5.13.0-rc2
v5.13.0-rc1
v5.13.0-beta4
v5.13.0-beta3
v5.13.0-beta2
v5.13.0-beta1
v5.13.0-alpha1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/androidextras/jni/qandroidjnienvironment.cpp
+18
-0
src/androidextras/jni/qandroidjnienvironment.cpp
src/androidextras/jni/qandroidjnienvironment.h
+1
-0
src/androidextras/jni/qandroidjnienvironment.h
with
19 additions
and
0 deletions
src/androidextras/jni/qandroidjnienvironment.cpp
+
18
−
0
View file @
563a68db
...
@@ -83,6 +83,19 @@ QT_BEGIN_NAMESPACE
...
@@ -83,6 +83,19 @@ QT_BEGIN_NAMESPACE
Returns the JNI Environment pointer.
Returns the JNI Environment pointer.
*/
*/
/*!
\fn jclass QAndroidJniEnvironment::findClass(const char *className)
Searches for \a className using all available class loaders. Qt on Android
uses a custom class loader to load all the .jar files and it must be used
to find any classes that are created by that class loader because these
classes are not visible in the default class loader.
Returns the class pointer or null if is not found.
\since Qt 5.12
*/
QAndroidJniEnvironment
::
QAndroidJniEnvironment
()
QAndroidJniEnvironment
::
QAndroidJniEnvironment
()
:
d
(
new
QJNIEnvironmentPrivate
)
:
d
(
new
QJNIEnvironmentPrivate
)
...
@@ -108,6 +121,11 @@ QAndroidJniEnvironment::operator JNIEnv*() const
...
@@ -108,6 +121,11 @@ QAndroidJniEnvironment::operator JNIEnv*() const
return
d
->
jniEnv
;
return
d
->
jniEnv
;
}
}
jclass
QAndroidJniEnvironment
::
findClass
(
const
char
*
className
)
{
return
QJNIEnvironmentPrivate
::
findClass
(
className
,
d
->
jniEnv
);
}
static
void
clearException
(
bool
silent
)
static
void
clearException
(
bool
silent
)
{
{
QAndroidJniEnvironment
env
;
QAndroidJniEnvironment
env
;
...
...
This diff is collapsed.
Click to expand it.
src/androidextras/jni/qandroidjnienvironment.h
+
1
−
0
View file @
563a68db
...
@@ -57,6 +57,7 @@ public:
...
@@ -57,6 +57,7 @@ public:
static
JavaVM
*
javaVM
();
static
JavaVM
*
javaVM
();
JNIEnv
*
operator
->
();
JNIEnv
*
operator
->
();
operator
JNIEnv
*
()
const
;
operator
JNIEnv
*
()
const
;
jclass
findClass
(
const
char
*
className
);
private:
private:
Q_DISABLE_COPY
(
QAndroidJniEnvironment
)
Q_DISABLE_COPY
(
QAndroidJniEnvironment
)
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets