hi :
i am using bing translator api for android , but i got this error :
error retrieving translation : null , i am only get the client id and client secret but i am not get access token here is my simple code :
package com.example.test;import com.memetix.mst.language.Language;
import com.memetix.mst.translate.Translate;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState)
{
Translate.setClientId("GP_Translator");
Translate.setClientSecret("+g/5jZTtVwz+9/+t21byqp02JCxwEEOjz+/d1CpSGdo=");
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView t = (TextView)findViewById(R.id.TextView01);
t=(TextView)findViewById(R.id.TextView01);
try {
String translatedText = Translate.execute("life", Language.ENGLISH, Language.FRENCH);
t.setText(translatedText);
System.out.println("hello try");
Log.d("LOG", translatedText);
} catch (Exception e) {
System.out.println("here catch");
t.setText("sorry");
e.printStackTrace();
}
}
}
thanks