title: Translate in Android using Google API
body: <p>I want to create a translate app in Android,i use Google Translate API,but it has error,please help me for fix it. This is my code</p>
  
  <pre><code>public void onClick(View v) {
          // TODO Auto-generated method stub
          String InputString;
          String OutputString = null;
          InputString = InputText.getText().toString();
  
          try {
  
              Translate.setHttpReferrer("http://translate.google.com.vn/");
              OutputString = Translate.DEFAULT.execute(InputString, Language.ENGLISH, Language.VIETNAMESE);    ////////
  
          } catch (Exception ex) {
              ex.printStackTrace();
              OutputString = "Error";
  
          }
  
          OutputText.setText(OutputString);               
      }   
  </code></pre>
  
  <p>Here is my Manifest</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.stthing"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="15" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/title_activity_main" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Error in line <strong>Translate.setHttpReferrer("http://translate.google.com.vn/");</strong></p>
  
  <pre><code>The method setHttpReferrer(String) is undefined for the type Translate
  </code></pre>