Immediately after starting a new Activity in UnityPlayerActivity, call the finish () method to close, and the program crashes.

I need to go into UnityPlayerActivity, and do something, then open a new Activity and pass the result of the operation, and close the current UnityPlayerActivity.
call method in UnityPlayerActivity:

public void onVideoRecorded(String videoPath) {
    Intent intent = new Intent();
    intent.setClassName(this, "com.example.my.activity.VideoActivity");
    intent.putExtra("MP4_PATH", videoPath);
    startActivity(intent);
    finish();
}  

to prevent the current process from being suspended by kill when exiting, the kill () method of UnityPlayer is rewritten:

class MyUnityPlayer extends UnityPlayer {

        public MyUnityPlayer(Context context) {
            super(context);
        }

        @Override
        protected void kill() {

        }
    }

and change the type of mUnityPlayer to MyUnityPlayer. But it still doesn"t work. After entering the VideoActivity interface, the interface will get stuck, and then the interface will collapse after a few seconds.

Why does it crash to call finish () to close the UnityPlayerActivity interface immediately after opening an Activity?

Mar.02,2021

encountered the same problem. After opening the new Activity, the entire application will be restarted.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39e71-2c1e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39e71-2c1e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?