From 83a466693bed1d3df9d9ecd2d738da1a88b1fe6a Mon Sep 17 00:00:00 2001 From: Vishnu Sivadas Date: Wed, 24 Jun 2020 23:35:42 +0530 Subject: [PATCH] Initial commit --- .../com/vishnusivadas/advanced_httpurlconnection/PutData.java | 2 +- .../vishnusivadas/advancedhttpurlconnection/MainActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Advanced_HttpURLConnection/src/main/java/com/vishnusivadas/advanced_httpurlconnection/PutData.java b/Advanced_HttpURLConnection/src/main/java/com/vishnusivadas/advanced_httpurlconnection/PutData.java index e093a60..dd61283 100644 --- a/Advanced_HttpURLConnection/src/main/java/com/vishnusivadas/advanced_httpurlconnection/PutData.java +++ b/Advanced_HttpURLConnection/src/main/java/com/vishnusivadas/advanced_httpurlconnection/PutData.java @@ -60,7 +60,7 @@ public void run() { } } - public boolean startFetch() { + public boolean startPut() { PutData.this.start(); return true; } diff --git a/app/src/main/java/com/vishnusivadas/advancedhttpurlconnection/MainActivity.java b/app/src/main/java/com/vishnusivadas/advancedhttpurlconnection/MainActivity.java index d0d91fa..ce9e37b 100644 --- a/app/src/main/java/com/vishnusivadas/advancedhttpurlconnection/MainActivity.java +++ b/app/src/main/java/com/vishnusivadas/advancedhttpurlconnection/MainActivity.java @@ -68,7 +68,7 @@ public void run() { data[0] = "data-1"; data[1] = "data-2"; PutData putData = new PutData("https://projects.vishnusivadas.com/AdvancedHttpURLConnection/putDataTest.php", "GET", param, data); - if (putData.startFetch()) { + if (putData.startPut()) { if (putData.onComplete()) { String result = putData.getResult(); progressBar.setVisibility(View.GONE);