Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is the url that should be kept in the below program to translate from English to hindi language.

C#
public void onClick(View v) {
     // TODO Auto-generated method stub
     String InputString;
     String OutputString = null;
     InputString = MyInputText.getText().toString();

     try {
      Translate.setHttpReferrer("http://android-er.blogspot.com/");
      OutputString = Translate.execute(InputString,
        Language.ENGLISH, Language.HINDI);
     } catch (Exception ex) {
      ex.printStackTrace();
      OutputString = "Error";
        }

     MyOutputText.setText(OutputString);

    }
};
}
Posted
Comments
[no name] 16-Aug-14 9:21am    
It would be the URL of whatever translator service you are using.
Seriously why are you reposting this over and over?
Member 11531952 14-May-15 8:20am    
this code having an error in my code for translate English to hindi.....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900