How to Translate in android? | Android

The Google translator translates the data of one language into another language by using
XMPP to transmit data. You can type the message in English and select the language which
is understood by the citizens of the country in order to reach the message to the citizens.