如何使用谷歌翻译应用程序 [英] How to use google translator app
问题描述
我$ C约字典一句$ CD计划,我希望有功能去谷歌翻译应用程序在我的应用程序
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?
推荐答案
从我可以告诉,谷歌翻译Android应用程序不公开任何标准意图
s表示你可以使用(这是一个贝蒂,但它的怪异在同一时间,你会认为谷歌会鼓励这种类型的应用程序之间的互动......反正)。
From what I can tell, the Google Translate Android app does not expose any standard Intent
s 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).
不过,似乎谷歌开辟了通过 Web服务。通过这种方式,你可以自己做翻译和你的应用程序中表现出来。这是一个有点更多的工作,但它应该做的工作。
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.
您可以看看谷歌API的翻译-java的如果你要从编写API包装饶了自己。
You could look at google-api-translate-java if you want to spare yourself from writing an API wrapper.
这篇关于如何使用谷歌翻译应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!