calling android java object from background thread unity code example
Example: calling android java object from background thread unity
// When creating an instance of an AndroidJavaObject on the Main Thread
// but wanting to use it on another thread:
// Call AndroidJNI.AttachCurrentThread() before trying to access the
// AndroidJavaObject on another thread