Android google translate API

I have a problem with receiving translations from Google via translate API. Does somebody know what is wrong? Thanks!

Note: It has worked fine for some time but maybe 5 months ago it stopped to work.

@Override
public void onClick(View v) {
    GoogleAPI.setHttpReferrer("http://code.google.com/p/google-api-translate-java/");
    GoogleAPI.setKey("xxx");

    try {
        tv_answer.setText(Translate.DEFAULT.execute(tv_source.getText().toString(), Language.CZECH, Language.ENGLISH));
    } catch (GoogleAPIException e) {
        e.printStackTrace();
    }
}

Received error:

com.google.api.GoogleAPIException: java.lang.Exception: [google-api-translate-java] Error retrieving translation.


ANSWERS:


This problem only appears on android when using this api client. I believe this is because this api client is old and/or poorly written.

You can attempt to get the source code from here and fix the problem yourself, or just use the api directly from Java using GET with HttpURLConnection and them parse the JSON.


Google Translate API is a paid service.

Note:

()



 MORE:


 ? How to pass Whole paragraph to Google Translate API v2?
 ? Transliteration from Hindi to English on Android without using Google API
 ? Offline language translator API for Android?
 ? Transliteration with Android
 ? Javascript / jQuery replace last word in input box in tamil language?
 ? How to use the file of UTF-8 format as a .srt file to show subtitle in mediaplayer?
 ? Querying and extracting a Unicode value from sqlite3 in Python
 ? Increase charset="utf-8" Font size in php/mysql site
 ? Tibetan and Devanagari ligatures not getting stacked properly using iText
 ? complex text layout of Indic scripts