e.printStackTrace(); } try { HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); connection.setConnectTimeout(8000); connection.setDoOutput(true); OutputStreamWriter output = new OutputStreamWriter(connection.getOutputStream()); output.write("file_id=" + id + "&name=" + URLEncoder.encode(newName, "UTF-8")); output.flush(); connection.connect(); int responseCode = connection.getResponseCode(); if (responseCode == HttpsURLConnection.HTTP_OK) { return true; } else { return false; } } catch (IOException e) {