我正在尝试将网格视图的内容“重置”为其初始值。从我在 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