diff --git a/pandora_agents/android/ChangeLog b/pandora_agents/android/ChangeLog index 4ecca73028..05cd092ee9 100644 --- a/pandora_agents/android/ChangeLog +++ b/pandora_agents/android/ChangeLog @@ -1,3 +1,10 @@ +2013-08-08 Miguel de Dios + + * src/pandroid/agent/PandroidAgentListener.java, + src/pandroid/agent/PandroidAgentTentacle.java: removed the java + warning that the class of tentacle have a method with the same name + as a constructor. + 2013-07-03 Miguel de Dios * Pandroid Agent v3.0_iso-8859-1.apk, Pandroid Agent v3.0_UTF8.apk: diff --git a/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java b/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java index 49fd1c6cf5..db6fe404f9 100644 --- a/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java +++ b/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java @@ -149,7 +149,7 @@ public class PandroidAgentListener extends Service { // "/data/data/pandroid.agent/files/" + destFileName // }; // - // int tentacleRet = new tentacle_client().tentacle_client(tentacleData); + // int tentacleRet = new tentacle_client().send(tentacleData); // // // Deleting the file after send it // File file = new File("/data/data/pandroid.agent/files/" + destFileName); @@ -301,7 +301,7 @@ public class PandroidAgentListener extends Service { }; - tentacleRet = new tentacle_client().tentacle_client(tentacleData); + tentacleRet = new tentacle_client().send(tentacleData); if (tentacleRet == 0) { putSharedData("PANDROID_DATA", "contactError", "0", "integer"); diff --git a/pandora_agents/android/src/pandroid/agent/PandroidAgentTentacle.java b/pandora_agents/android/src/pandroid/agent/PandroidAgentTentacle.java index e1a1c2e3d9..db2bbe89ff 100755 --- a/pandora_agents/android/src/pandroid/agent/PandroidAgentTentacle.java +++ b/pandora_agents/android/src/pandroid/agent/PandroidAgentTentacle.java @@ -24,7 +24,7 @@ import java.net.UnknownHostException; class tentacle_client { // Return 0 when success, -1 when error - public int tentacle_client(String args[]) { + public int send(String args[]) { int port = 41121; String send = null; @@ -36,17 +36,18 @@ class tentacle_client { boolean verbose = false; File file = new File(""); - for (int i=0;i SIZE " + Integer.toString(data.length) + '\n'; getInfo("Client -> Server: " + send, verbose); serverOutput.writeBytes(send); - } catch (IOException e) { + } + catch (IOException e) { getError("Could not write on server"); } try { serverResponse = serverInput.readLine(); - } catch (IOException e) { + } + catch (IOException e) { getError("Could not get server response"); }