jgresham / microsoft-translator-java-api

Automatically exported from code.google.com/p/microsoft-translator-java-api
0 stars 0 forks source link

API does not work with Android version 4.0.4 #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call Translate.execute(      evWord2Name.getText().toString(), 
mappingLang[0],mappingLang[1]);         
2. Produces URI: 
http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId=MY_API_ID&from=de
&to=it&text=test
3.

What is the expected output? What do you see instead?
If I call the URI in Chrome it is "prova".

In Java I got an error like:
java.lang.Exception: [microsoft-translator-api] Error retrieving translation : 
null

What version of the product are you using? On what operating system?

microsoft-translator-java-api-0.4-jar-with-dependencies.jar
Android 4.0.4 produces an error.
In Android Version 2.3.6 and older the API still works fine.

Please provide any additional information below.

Maybe something with the HTTP request/methods has changed in Android 4.0.4. I 
would really appreciate it if you could fix this. You API is so great. Thanks 
in advance.

Cheers.

Original issue reported on code.google.com by luX1...@googlemail.com on 21 Apr 2012 at 1:30

GoogleCodeExporter commented 8 years ago
This bug was addressed in 0.5. 

GitHub issue: 
https://github.com/boatmeme/microsoft-translator-java-api/issues/27. 

Please upgrade to 0.5 or later jars.

Original comment by jonathan...@gmail.com on 23 Apr 2012 at 2:59