daolq3012 / screen-translator

Android Quick Settings tile to translate screen using Google Lens / Naver Papago

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screen Translator

This Android app is a Quick Setting tile to translate the current screen using Naver Papago (네이버 파파고) / Google Lens app.

Demo

Screen.Translator.Demo.mp4

Notice that using the Screen Translator app is much quicker than the traditional screenshot and share UI.

How does it work?

  1. When user touches the quick settings tile, an intent is sent by ScreenTranslatorTileService::onClick to trigger ScreenTranslatorAccessibilityService::onStartCommand
  2. If the user didn't give accessibility permissions yet, they are redirected to accessibility settings page.
  3. If the accessibility permissions are present, notification panel collapse request is send to system.
  4. Finally, a screenshot is taken using accessiblity service and sent to Papago / Google Lens app for further translation inside their app's activity.
  5. If Papago / Google Lens app is not installed in the system, user is notified of the same through a toast.

This app has a UI for a few settings too.

Author

Vamsi Krishna Reddy Satti - vamsi3

License

This project is licensed under the MIT License - please see the LICENSE file for details.

Disclaimer

NAVER, Papago and all related logos are trademarks of NAVER Corporation or its affiliates. Google, Google Lens™ visual search engine and all related logos are trademarks of Google LLC or its affiliates.

About

Android Quick Settings tile to translate screen using Google Lens / Naver Papago

License:MIT License


Languages

Language:Kotlin 100.0%