gpt4 book ai didi

java - Exchange Service 泄露了 ServiceConnection、GridView Adapter

转载 作者:行者123 更新时间:2023-11-30 09:16:09 24 4
gpt4 key购买 nike

我正在尝试将 GridView 的内容“重置”为其初始值。从我在 Create 上的 Activity 来看,我有

    gridView = (GridView) findViewById(R.id.gridv);
gridView.setNumColumns(gridsize);

gridView.setAdapter(new Adapter(this, temp,gridsize));

然后当我尝试重置它时,我是这样做的(从 Activity 中的另一个函数调用)

      gridView.setAdapter(new Adapter(this, temp,gridsize));
gridView.invalidateViews();

它有效,但我收到以下错误:(它没有崩溃)

10-22 18:12:39.719: E/ActivityThread(716): Service
com.android.exchange.ExchangeService has leaked ServiceConnection
com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cee170 that was
originally bound here
10-22 18:12:39.719: E/ActivityThread(716): android.app.ServiceConnectionLeaked: Service
com.android.exchange.ExchangeService has leaked ServiceConnection
com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cee170 that was originally bound here

最佳答案

我假设您的应用不是 com.android.exchange,那么您不必担心。原因是因为您使用的是模拟器,而 logcat 也在打印来自 com.android.exchange 的错误。 post已讨论禁用此功能。

如果这是在真实设备上。请发布设备详细信息。

关于java - Exchange Service 泄露了 ServiceConnection、GridView Adapter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19525360/

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