Source:
<code>public void uploadFiles() { try { List<Uri> contentUris = new ArrayList<>(); List<String> contentRemotePaths = new ArrayList<>(); int schemeFileCounter = 0; for (Parcelable sourceStream : mStreamsToUpload) { Uri sourceUri = (Uri) sourceStream; if (sourceUri != null) { String displayName = UriUtils.getDisplayNameForUri(sourceUri, this); if (displayName == null) { displayName = generateDiplayName(); } String remotePath = mUploadPath + displayName; if (ContentResolver.SCHEME_CONTENT.equals(sourceUri.getScheme())) { contentUris.add(sourceUri); contentRemotePaths.add(remotePath); } else if (ContentResolver.SCHEME_FILE.equals(sourceUri.getScheme())) { requestUpload(sourceUri.getPath(), remotePath); schemeFileCounter++; } } } if (!contentUris.isEmpty()) { copyThenUpload(contentUris.toArray(new Uri[contentUris.size()]), contentRemotePaths.toArray(new String[contentRemotePaths.size()])); } else if (schemeFileCounter == 0) { showErrorDialog( R.string.uploader_error_message_no_file_to_upload, R.string.uploader_error_title_no_file_to_upload ); } else { finish(); } } catch (SecurityException e) { Log_OC.e(TAG, "Permissions fail", e); showErrorDialog( R.string.uploader_error_message_read_permission_not_granted, R.string.uploader_error_title_file_cannot_be_uploaded ); } catch (Exception e) { Log_OC.e(TAG, "Unexpted error", e); showErrorDialog( R.string.common_error_unknown, R.string.uploader_error_title_file_cannot_be_uploaded ); } finally { SharedPreferences.Editor appPrefs = PreferenceManager .getDefaultSharedPreferences(getApplicationContext()).edit(); <START> appPrefs.putString("last_upload_path", mUploadPath); <END> appPrefs.apply(); } }</code><technical_language>"last_upload_path" a constant, wants access refer constant :)</technical_language>

Target:
public void uploadFiles() { try { List<Uri> contentUris = new ArrayList<>(); List<String> contentRemotePaths = new ArrayList<>(); int schemeFileCounter = 0; for (Parcelable sourceStream : mStreamsToUpload) { Uri sourceUri = (Uri) sourceStream; if (sourceUri != null) { String displayName = UriUtils.getDisplayNameForUri(sourceUri, this); if (displayName == null) { displayName = generateDiplayName(); } String remotePath = mUploadPath + displayName; if (ContentResolver.SCHEME_CONTENT.equals(sourceUri.getScheme())) { contentUris.add(sourceUri); contentRemotePaths.add(remotePath); } else if (ContentResolver.SCHEME_FILE.equals(sourceUri.getScheme())) { requestUpload(sourceUri.getPath(), remotePath); schemeFileCounter++; } } } if (!contentUris.isEmpty()) { copyThenUpload(contentUris.toArray(new Uri[contentUris.size()]), contentRemotePaths.toArray(new String[contentRemotePaths.size()])); } else if (schemeFileCounter == 0) { showErrorDialog( R.string.uploader_error_message_no_file_to_upload, R.string.uploader_error_title_no_file_to_upload ); } else { finish(); } } catch (SecurityException e) { Log_OC.e(TAG, "Permissions fail", e); showErrorDialog( R.string.uploader_error_message_read_permission_not_granted, R.string.uploader_error_title_file_cannot_be_uploaded ); } catch (Exception e) { Log_OC.e(TAG, "Unexpted error", e); showErrorDialog( R.string.common_error_unknown, R.string.uploader_error_title_file_cannot_be_uploaded ); } finally { PreferenceManager.setLastUploadPath(mUploadPath, this); } }