diff options
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/CheckAppVersionService.java | 1 | ||||
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/UpdaterWebService.java | 9 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/CheckAppVersionService.java b/src/main/java/eu/siacs/conversations/services/CheckAppVersionService.java index ddc89e1a4..52301c603 100644 --- a/src/main/java/eu/siacs/conversations/services/CheckAppVersionService.java +++ b/src/main/java/eu/siacs/conversations/services/CheckAppVersionService.java @@ -38,7 +38,6 @@ public class CheckAppVersionService extends HttpServlet { out.println(myObj.toString()); out.close(); - } } diff --git a/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java b/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java index faad2fd93..0b220f2bc 100644 --- a/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java +++ b/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java @@ -19,15 +19,15 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import eu.siacs.conversations.Config; -import eu.siacs.conversations.ui.UpdaterActivity.MyWebReceiver; +import eu.siacs.conversations.ui.UpdaterActivity.UpdateReceiver; public class UpdaterWebService extends IntentService{ public static final String REQUEST_STRING = ""; public static final String RESPONSE_MESSAGE = ""; private String URL = null; - private static final int REGISTRATION_TIMEOUT = 3 * 1000; - private static final int WAIT_TIMEOUT = 30 * 1000; + public static final int REGISTRATION_TIMEOUT = 3 * 1000; + public static final int WAIT_TIMEOUT = 30 * 1000; public UpdaterWebService() { super("UpdaterWebService"); @@ -54,6 +54,7 @@ public class UpdaterWebService extends IntentService{ HttpResponse response = httpclient.execute(httpGet); StatusLine statusLine = response.getStatusLine(); + Log.d(Config.LOGTAG, "AppUpdater: HTTP Status Code: " + statusLine.getStatusCode()); if(statusLine.getStatusCode() == HttpStatus.SC_OK){ ByteArrayOutputStream out = new ByteArrayOutputStream(); response.getEntity().writeTo(out); @@ -80,7 +81,7 @@ public class UpdaterWebService extends IntentService{ Intent broadcastIntent = new Intent(); - broadcastIntent.setAction(MyWebReceiver.PROCESS_RESPONSE); + broadcastIntent.setAction(UpdateReceiver.PROCESS_RESPONSE); broadcastIntent.addCategory(Intent.CATEGORY_DEFAULT); broadcastIntent.putExtra(RESPONSE_MESSAGE, responseMessage); sendBroadcast(broadcastIntent); |