@@ -113,19 +113,19 @@ static int registerNativeMethods(JNIEnv* env, const char* className,
113
113
jclass clazz=env->FindClass (className);
114
114
if (clazz == NULL )
115
115
{
116
- __android_log_print (ANDROID_LOG_FATAL," Qt" , " Native registration unable to find class '%s'" , className);
116
+ // __android_log_print(ANDROID_LOG_FATAL,"Qt", "Native registration unable to find class '%s'", className);
117
117
return JNI_FALSE;
118
118
}
119
119
jmethodID constr = env->GetMethodID (clazz, " <init>" , " ()V" );
120
120
if (!constr) {
121
- __android_log_print (ANDROID_LOG_FATAL," Qt" , " Native registration unable to find constructor for class '%s'" , className);
121
+ // __android_log_print(ANDROID_LOG_FATAL,"Qt", "Native registration unable to find constructor for class '%s'", className);
122
122
return JNI_FALSE;;
123
123
}
124
124
jobject obj = env->NewObject (clazz, constr);
125
125
objptr = env->NewGlobalRef (obj);
126
126
if (env->RegisterNatives (clazz, gMethods , numMethods) < 0 )
127
127
{
128
- __android_log_print (ANDROID_LOG_FATAL," Qt" , " RegisterNatives failed for '%s'" , className);
128
+ // __android_log_print(ANDROID_LOG_FATAL,"Qt", "RegisterNatives failed for '%s'", className);
129
129
return JNI_FALSE;
130
130
}
131
131
return JNI_TRUE;
@@ -149,20 +149,20 @@ typedef union {
149
149
150
150
Q_DECL_EXPORT jint JNICALL JNI_OnLoad (JavaVM* vm, void * /* reserved*/ )
151
151
{
152
- __android_log_print (ANDROID_LOG_INFO," Qt" , " qt start" );
152
+ // __android_log_print(ANDROID_LOG_INFO,"Qt", "qt start");
153
153
UnionJNIEnvToVoid uenv;
154
154
uenv.venv = NULL ;
155
155
m_javaVM = 0 ;
156
156
157
157
if (vm->GetEnv (&uenv.venv , JNI_VERSION_1_4) != JNI_OK)
158
158
{
159
- __android_log_print (ANDROID_LOG_FATAL," Qt" ," GetEnv failed" );
159
+ // __android_log_print(ANDROID_LOG_FATAL,"Qt","GetEnv failed");
160
160
return -1 ;
161
161
}
162
162
m_env = uenv.nativeEnvironment ;
163
163
if (!registerNatives (m_env))
164
164
{
165
- __android_log_print (ANDROID_LOG_FATAL, " Qt" , " registerNatives failed" );
165
+ // __android_log_print(ANDROID_LOG_FATAL, "Qt", "registerNatives failed");
166
166
return -1 ;
167
167
}
168
168
m_javaVM = vm;
0 commit comments