@Override
 public void onPause() {
   super.onPause();
   ApiService.unregisterListener(mProjectsLoadedListener);
   mAdapter = null;
   mGridView.setAdapter(null);
 }
 private void deleteProject(final String projectPath) {
   ApiService.deleteProject(ProjectsActivity.this, projectPath);
   mAdapter.remove(projectPath);
 }
 @Override
 public void onResume() {
   super.onResume();
   ApiService.registerListener(mProjectsLoadedListener);
   ApiService.loadProjects(this);
 }