I am trying to get the contents of a grid view "reset" to their initial values. From my activity in on Create i have
gridView = (GridView) findViewById(R.id.gridv);
gridView.setNumColumns(gridsize);
gridView.setAdapter(new Adapter(this, temp,gridsize));
Then when i try to reset it , i did it like so (Call from another function in the Activity)
gridView.setAdapter(new Adapter(this, temp,gridsize));
gridView.invalidateViews();
It works but i get the following Error: (it doesnt crash )
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