在runOnUiThread中抛出异常,可导致系统崩溃
import com.unity3d.player.UnityPlayer;
import com.unity3d.player.UnityPlayerActivity;
private static void JavaCrash(){
new Thread(new Runnable() {
@Override
public void run() { // 子线程
UnityPlayer.currentActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
callCrash();
}
});
}
}).start();
}