gpt4 book ai didi

android - EmailBroadcastProcessorService 泄露了 ServiceConnection

转载 作者:行者123 更新时间:2023-11-29 01:36:16 26 4
gpt4 key购买 nike

调用时出现以下异常:

requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);

2089-2089/? E/ActivityThread﹕ Service com.android.email.service.EmailBroadcastProcessorService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@10bbc6d8 that was originally bound here

android.app.ServiceConnectionLeaked: Service com.android.email.service.EmailBroadcastProcessorService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@10bbc6d8 that was originally bound here`

我的 onCreate 方法如下所示:

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
setContentView(R.layout.activity_movie_detail);

getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));

}

我不知道从哪里开始。有人有什么想法吗?

也只是为了澄清当 requestWindowFeature 行被删除时不会发生异常。

最佳答案

requestWindowFeature

应该是:

supportRequestWindowFeature

虽然可能还有其他一些潜在问题,但我不明白为什么会出现此错误。如果在其他地方使用 appcompat 主题时使用非支持方法代替支持方法,也会给出相同的错误

关于android - EmailBroadcastProcessorService 泄露了 ServiceConnection,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27778718/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com