点击页面跳转时报错:
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
imageButton.setOnClickListener(view -> {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
});
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@bfcf8f7
新建一个工程又不报错。如果粘我的代码,又会报错。
你的这个活动在注册清单里绑定注册了吗?
解决了吗,我这也遇到了同样的问题,只是一个单纯的跳转,没有任何的参数,出现的问题和你一样。