So I've added unity as an Activity into my android app. I also added an app that overlays onto the UnityPlayerActivity that calls finish() to close out that activity and return back to my main activity. I've found that if I just quickly start unity and close it, no problem. But, if I let unity run for a little bit (10-20 seconds+) and I tap the button, I get the message in logcat starting with:
JNI DETECTED ERROR IN APPLICATION: use of deleted global reference 0x7d3736
from boolean com.unity3d.player.NativeLoader.unload()
...
From this point on, my UI is entirely stuck and I receive JavaBinder errors:
!!! FAILED BINDER TRANSACTION !!! (parcel size = 1388)
Error in monitored listener. android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
I'm honestly so lost. How can I close out the UnityPlayerActivity without causing errors?
↧