How to use google translator app

前端 未结 6 1694
你的背包
你的背包 2021-02-02 02:14

I coded program about dictionary sentence and I want to have function to go to \"google translator\" application in my app

How can I use it , Should I import anything?

6条回答
  •  误落风尘
    2021-02-02 02:42

    From what I can tell, the Google Translate Android app does not expose any standard Intents that you could use (it's a pitty, but it's weird at the same time. You'd think Google would encourage this type of interaction between apps.. anyway).

    However, it seems Google have opened up the translate API via a web service. This way, you can do the translation yourself and show it within your app. It's a bit more work, but it should do the job.

    You could look at google-api-translate-java if you want to spare yourself from writing an API wrapper.

提交回复
热议问题