Exchange Service已泄露ServiceConnection,GridView适配器

时间:2013-10-22 18:16:26

标签: java android gridview adapter

我试图将网格视图的内容“重置”为其初始值。 从我在创作中的活动我有

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

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

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

      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

1 个答案:

答案 0 :(得分:2)

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

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