Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing Microsoft Translator API in Android application
    primarykey
    data
    text
    <p>I have created sample Android application which translates text using Microsoft Translator API. I included jar file from this project <a href="https://github.com/boatmeme/microsoft-translator-android-test" rel="nofollow">https://github.com/boatmeme/microsoft-translator-android-test</a>. Here is my application code...</p> <pre><code>public class translateSample extends Activity{ /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Translate.setClientId("my client key"); Translate.setClientSecret("client secret key"); super.onCreate(savedInstanceState); //setContentView(R.layout.activity_translate); Button Trans1 = (Button)findViewById(R.id.translate); Trans1.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { EditText Input = (EditText)findViewById(R.id.input); EditText Output = (EditText)findViewById(R.id.output); String In =Input.getText().toString(); //String Out; try { String Out = Translate.execute(In, Language.ENGLISH, Language.FRENCH); Input.setText(Out); Output.setText(Out); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); } } </code></pre> <p>I am getting following error:</p> <pre><code>java.lang.Exception: [microsoft-translator-api] Error retrieving translation : Hostname &lt;datamarket.accesscontrol.windows.net&gt; was not verified </code></pre> <p>Please help me to solve this error.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload