moved adapter.set method to gridView.post, seems to be fixing the issue