diff options
author | Christian S <christian@pix-art.de> | 2015-10-10 20:50:10 +0200 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2015-10-10 20:50:10 +0200 |
commit | df01836625e622c6c28947b03949bbcbee02b358 (patch) | |
tree | e161132d15907b1d884d5544841a919adea04497 /src/main/java/eu/siacs/conversations/services/UpdaterWebService.java | |
parent | 84d5bb9a2c57091653bdd5c365338b77b13add56 (diff) |
updated AppUpdater a bit
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/UpdaterWebService.java | 9 |
1 files changed, 5 insertions, 4 deletions
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); |