2

グリッド ビューの内容を初期値に「リセット」しようとしています。私の活動から Create 私は持っています

    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
4

1 に答える 1

2

あなたのアプリは com.android.exchange ではないと思いますが、心配する必要はありません。その理由は、エミュレータを使用していて、logcat が com.android.exchange からもエラーを出力しているためです。投稿でこれを無効にすることが議論されています。

これが実際のデバイス上にあった場合。デバイスの詳細を投稿してください。

于 2013-10-22T18:19:11.397 に答える