AndroidJavaObject threading

Hey, I’ve seen a few posts about multithreading and AndroidJavaObject, but it’s unclear if any formal notice has been provided by unity as to using these objects on anything but the main thread.

Is there anyone who has successfully used this utility on a separate thread or knows if unity declares them to be completely not thread safe? Thanks.

Haven’t tested this myself, but i know that the AndroidJavaObject and AndroidJavaClass types are merely “helpers” for doing all of the heavy lifting of manually creating the JNI identifier for classes and methods and invoking that.

As such it seems that they could be in fact triggered from just about any thread, but again, i haven’t tested this myself.

You could prove it with a very simple test app that will spawn a new thread and call something using an AndroidJavaObject.