How to call Android SDK function in the C# code.Please help me, thanks all.
You can not.
You must write an unmanaged plugin which binds the java function through jni (Unity runs on the NDK layer, java on the SDK layer)
See the plugins page in the manual for more on the matter
AndroidJavaObject / AndroidJavaClass can help me ?how to ues them.
Interesting seems like the documentation on plugins isn’t up to date then.
I guess now you can do what the plugin documentation mentions, but straight with C# code.
so instead of the openjni etc that is on the docs page provided for C, you can use the AndroidJNI class and build upon that to use the class you mention and others.
how to use the AndroidJNI class?i can’t:(
No idea, the code here is done on the plugin layer with the unmanaged code between unity and java and it works, haven’t looked in how to wrap it up and call the same stuff with this new functionality in 3.2
Someone from UT or one of those who experimented with it will have to answer that I guess
this will be properly documented with the next release
Is there someone who can quickly document it in here while we’re waiting?
Hi, I’m looking for this, is the documentation available right now ? Any link please ?