Activity 中的Toast在Activity销毁后报错,解决方法,把context改成应用的

ToastUtil.showShort(context, R.string.connection_fail);

改成


ToastUtil.showShort(BusinesslinkApplication.getInstance(), R.string.connection_fail);

你可能感兴趣的:(Android--Error,and,Exception)