问题遇到的现象和发生背景
点击页面跳转时报错:
遇到的现象和发生背景,请写出第一个错误信息
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@a3f64eb
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@32724a
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c35dd7d
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@38232cb
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c52f0a4
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@3525fa7
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@d3de610
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@50b2dac
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@b3d7901
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@88bfa57
用代码块功能插入代码,请勿粘贴截图。 不用代码块回答率下降 50%
imageButton.setOnClickListener(view -> {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
});
运行结果及详细报错内容
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@bfcf8f7
我的解答思路和尝试过的方法,不写自己思路的,回答率下降 60%
新建一个工程又不报错。如果粘我的代码,又会报错。