@SuppressWarnings("deprecation") public void loadClickListener(View v) { File csv_file = new File(ODKFileUtils.getPlaceNameCsvFile(getAppName())); if (csv_file.exists() == true) { disableButtons(); showDialog(PROGRESS_DIALOG); mLoadPlaceTask = new LoadPlaceTask(); mLoadPlaceTask.setApplication(getApplication()); mLoadPlaceTask.setAppName(getAppName()); mLoadPlaceTask.setListener(PlaceListActivity.this); mLoadPlaceTask.execute(); } else { mMessageTextView.setText( getString( R.string.unable_to_find_config_file, ODKFileUtils.getPlaceNameCsvFile(getAppName()))); } }