我想在Android上开发一个翻译应用程序,它不仅翻译选定的(ACTION_PROCESS_TEXT-ed)文本,而且还翻译整个句子. 例如:我正在浏览器上用外语阅读一篇文章,我正在阅读下面的句子:
我爱你,你不爱我.
I select the word "liebe", then I select my application from the context menu (In the picture, Copy with clipnote is shown, imagine here the name of my application) then I want to translate not only the word "liebe" but also the whole sentence. (So the string 我爱你,你不爱我.)
有可能吗?
我期待着获得所选世界的周围文本.