Skip to content Skip to sidebar Skip to footer

Callintmethod Result -1 - Android Jni

I would like to use the ANDROID SharedPreferences from C. For easier usage, I've a class and some methods for it (getIniParamInt, getIniParamString etc.) The things works fine in J

Solution 1:

Hmm... I found the SOLUTION! The problem is, in Java code: It must declare the called method as private method instead of public!!!

private int getIniParamInt(String mezoNev)
              {return999;} 

I'm a beginner, so I don't know the real explanation... I just tried it. I hope it's helpful for people who wants use method like this.

Post a Comment for "Callintmethod Result -1 - Android Jni"