Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2011

    Google translate API

    Hi all,

    I really need an example how to access/call google translate api in j2me midlet

    Thank you all

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011

    Re: Google translate API

    Hi vozmen,

    There are a couple of things that you need to go through in order to create a J2ME application that uses google translate.

    1) You need a License Key in order to use Google API v2. The API is only offered as a paid service as of 1st of December 2011:

    2) Then you need to create a REST request to Google's server, which is basically a secure http request with some parameters. In order to find out how to pass those parameters via a get method, you need to check this link:

    3) In order to create the request to the server from your J2ME application, you need to use the HttpsConnection Interface:

    Now, the issue here is that https requests, require that your application is signed. That means you need to add the
    following permissions to your JAD file:
    MIDlet-Permissions: javax.microedition.io.Connector.https

    You can find more about permissions and protected API calls for MIDP2.0 here:


    and then, you need to sign your MIDlet by a Certificate Authority according to the information here:

  3. #3
    Registered User
    Join Date
    Dec 2011

    Re: Google translate API

    Thank you skalogir,

    This is really informative response.
    And I have a question:
    - I have done it via HttpConnection (not HttpsConnection) and have not signed my jar and have not added any permissions - and it works from Nokia.

    Can it be?

    Thank you.

  4. #4
    Super Contributor
    Join Date
    Mar 2003

    Re: Google translate API

    Your duplicate thread where you already have a couple of suggestions how to handle issues with Samsung phone models:


  5. #5
    Registered User
    Join Date
    Dec 2011

    Re: Google translate API

    Yes, thank you all guys...
    I've posted a question to a Samsung forum.

    You have provided me with a lot of info, thank you again

Similar Threads

  1. Google translate API
    By vozmen in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2011-12-14, 19:16
  2. QPainter translate
    By mj_124949727@126.com in forum Qt
    Replies: 1
    Last Post: 2010-10-19, 08:17
  3. Can i translate a Symbian 9.1 App?
    By IMPACT in forum Symbian Tools & SDKs
    Replies: 17
    Last Post: 2010-02-04, 14:31
  4. translate xml to html
    By yanhua in forum Symbian
    Replies: 0
    Last Post: 2007-10-21, 21:59
  5. Translate # to 3
    By quantan in forum General Messaging
    Replies: 0
    Last Post: 2002-11-15, 04:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts