Back to Projects
2025-12-09AI/MLREADME Rendered

AITextTool

Android text assistant with floating windows and multi-provider LLM support for translation, explanation, AI search, and quick actions on selected text.

AndroidKotlinJetpack ComposeLLMTranslation
AI Text Tool Logo

A smart Android text assistant powered by AI

Android API Kotlin License


✨ Features

  • šŸ“ Text Selection Integration - Select text anywhere, invoke AI assistant from system menu
  • 🌐 Translation - Translate between Chinese and English instantly
  • šŸ’” Explanation - Get concise explanations for any concept or term
  • šŸ” AI Search - Search and summarize information with AI
  • šŸ“‹ Quick Copy - Copy selected text or AI results with one tap
  • šŸŽØ Floating Window - Non-intrusive overlay UI that doesn't interrupt your workflow
  • āš™ļø Multi-Provider Support - Works with OpenAI, Claude, DeepSeek, and 10+ other AI providers

šŸ“± Screenshots

SettingsFloating MenuAI Response
Screenshot 1Screenshot 2Screenshot 3

šŸš€ Getting Started

Prerequisites

  • Android 7.0 (API 24) or higher
  • An API key from any supported AI provider

Installation

  1. Download the latest APK from Releases
  2. Install the APK on your Android device
  3. Open the app and configure your API settings
  4. Grant overlay permission when prompted

Supported AI Providers

ProviderBase URLModels
DeepSeekapi.deepseek.comdeepseek-chat, deepseek-coder
OpenAIapi.openai.comgpt-4o, gpt-3.5-turbo
Claudeapi.anthropic.comclaude-3-5-sonnet
Google Geminigenerativelanguage.googleapis.comgemini-1.5-pro
Moonshotapi.moonshot.cnmoonshot-v1-128k
And more...

šŸ› ļø Building from Source

Requirements

  • Android Studio Hedgehog or later
  • JDK 17
  • Android SDK 34

Build Steps

# Clone the repository
git clone https://github.com/yourusername/ai-text-tool.git
cd ai-text-tool

# Set JAVA_HOME (if not set)
# Windows:
set JAVA_HOME=D:\Android Studio\jbr

# Build debug APK
./gradlew assembleDebug

# Build release APK (requires signing config)
./gradlew assembleRelease

The APK will be generated at app/build/outputs/apk/

šŸ—ļø Tech Stack

  • Language: Kotlin 1.9.24
  • UI Framework: Jetpack Compose
  • Dependency Injection: Hilt
  • Networking: Retrofit + OkHttp
  • Local Storage: DataStore
  • Architecture: MVVM

šŸ“ Project Structure

app/src/main/
ā”œā”€ā”€ java/com/example/aitexttool/
│   ā”œā”€ā”€ MainActivity.kt          # Settings screen
│   ā”œā”€ā”€ SplashActivity.kt         # Splash animation
│   ā”œā”€ā”€ ProcessTextActivity.kt    # Text selection handler
│   ā”œā”€ā”€ FloatingWindowService.kt  # Floating window service
│   ā”œā”€ā”€ data/
│   │   ā”œā”€ā”€ AiRepository.kt       # AI API calls
│   │   ā”œā”€ā”€ UserPreferencesRepository.kt
│   │   └── network/              # API models
│   ā”œā”€ā”€ di/
│   │   └── AppModule.kt          # Hilt modules
│   └── ui/
│       ā”œā”€ā”€ FloatingMenu.kt       # Floating UI
│       └── SettingsScreen.kt     # Settings UI
ā”œā”€ā”€ assets/
│   └── splash.html               # Splash animation
└── res/
    └── ...

šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

šŸ“„ License

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

šŸ™ Acknowledgments


Made with ā¤ļø by AI Text Tool Team