Skip to content

CircleToSearch with multi search engine support for all android

Kotlin

updated icons and links

AKS Labsbf1d354039a6
diff --git a/README_NEW.md b/README_NEW.md
new file mode 100644
index 0000000..e223eac
--- /dev/null
+++ b/README_NEW.md
@@ -0,0 +1,162 @@
+<!-- ---------- Header ---------- -->
+<div align="center">
+ <img src="app/src/main/res/drawable/circletosearch.png" width="180" height="180" style="border-radius: 20px; margin-bottom: 20px;">
+
+ # Circle To Search
+
+ <p><strong>Multi-Engine Reverse Image Search for Android</strong></p>
+ <p>Draw a circle. Search instantly. <em>Google • Bing • Yandex • TinEye</em></p>
+
+<!-- ---------- Badges ---------- -->
+ <p>
+ <img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square">
+ <img alt="API" src="https://img.shields.io/badge/API%2029%2B-50f270?style=flat-square">
+ <img alt="Kotlin" src="https://img.shields.io/badge/Kotlin-7F52FF?style=flat-square&logo=kotlin&logoColor=white">
+ <img alt="Compose" src="https://img.shields.io/badge/Compose-4285F4?style=flat-square&logo=jetpack-compose&logoColor=white">
+ </p>
+
+ <p>
+ <img alt="Downloads" src="https://img.shields.io/github/downloads/AKS-Labs/CircleToSearch/total?color=c3e7ff&style=flat-square">
+ <img alt="Stars" src="https://img.shields.io/github/stars/AKS-Labs/CircleToSearch?color=c3e7ff&style=flat-square">
+ <img alt="Last commit" src="https://img.shields.io/github/last-commit/AKS-Labs/CircleToSearch?color=c3e7ff&style=flat-square">
+ </p>
+</div>
+
+---
+
+## 🎯 What is Circle To Search?
+
+Ever wanted to search for something you see on your phone screen? **Circle To Search** brings that power to your fingertips on *any* Android device. Simply draw a circle around what you're looking for, and instantly get results from your favorite search engine.
+
+Think of it as having Google Lens, Bing Visual Search, Yandex, and TinEye all in one place—and it works everywhere.
+
+---
+
+## ✨ Key Features
+
+| Feature | Description |
+|---------|-------------|
+| 🔄 **Multi-Engine Search** | Google Lens, Bing, Yandex, TinEye in one app |
+| 🎨 **Intuitive Selection** | Draw a circle or scribble to select exactly what you want |
+| ⚡ **Lightning Fast** | Smart preloading makes results appear instantly |
+| 🌙 **Dark Mode** | Easy on the eyes, supports full dark mode |
+| 🖥️ **Desktop/Mobile Modes** | Switch between desktop and mobile user agents |
+| 🔒 **Privacy First** | No tracking, no analytics, fully open-source |
+| 📱 **Universal** | Works on Android 10+ across all devices |
+
+---
+
+## 🚀 Quick Start
+
+### Installation
+Download from [Google Play Store](https://play.google.com/store/apps/details?id=com.akslabs.circletosearch) or build from source.
+
+### First Time Setup
+1. Open the app
+2. Tap **"Enable Accessibility Service"** to grant permissions
+3. Allow **accessibility** and **internet** permissions
+4. You're ready to go!
+
+### How to Use
+1. **Trigger the overlay** by double-tapping the status bar
+2. **Draw a circle** around the object or text you want to search
+3. **Pick a search engine** from the bottom sheet
+4. **Explore results** in the in-app browser
+
+---
+
+## 🏗️ Architecture
+
+Built with modern Android best practices:
+
+- **Kotlin** - Concise, safe, and expressive
+- **Jetpack Compose** - Declarative UI framework for beautiful interfaces
+- **Coroutines** - Efficient asynchronous operations
+- **WebView** - Integrated browser for seamless search results
+- **Accessibility API** - Non-intrusive screen capture and gesture detection
+
+---
+
+## 📸 Screenshots
+
+| Feature | Preview |
+|---------|---------|
+| Circle Selection | Draw to select |
+| Multi-Engine | Search across 4 engines |
+| Results Browser | View results inline |
+| Customization | Dark mode, desktop mode |
+
+---
+
+## 🔧 Development
+
+### Requirements
+- Android Studio (latest)
+- Kotlin 1.9+
+- Gradle 8.0+
+- API 29+ (SDK Target: 36)
+
+### Build & Run
+```bash
+git clone https://github.com/AKS-Labs/CircleToSearch.git
+cd CircleToSearch
+./gradlew installDebug
+```
+
+### Project Structure
+```
+app/
+├── src/main/java/com/akslabs/circletosearch/
+│ ├── ui/ # Compose UI components
+│ ├── data/ # Data models & search engines
+│ ├── utils/ # Image processing & uploads
+│ └── service/ # Accessibility service
+├── res/
+│ ├── drawable/ # Custom icons and assets
+│ └── values/ # Strings, colors, themes
+```
+
+---
+
+## 🤝 Contributing
+
+Have an idea to make it better? We'd love to hear it!
+
+1. **Fork** the repository
+2. **Create** a feature branch: `git checkout -b feature/amazing-thing`
+3. **Commit** your changes: `git commit -m 'Add amazing thing'`
+4. **Push** to the branch: `git push origin feature/amazing-thing`
+5. **Open** a Pull Request
+
+---
+
+## 📝 License
+
+This project is licensed under the **Apache License 2.0**. See [LICENSE](LICENSE) for details.
+
+---
+
+## 💬 Connect
+
+Questions? Feedback? Found a bug? Let's talk!
+
+- **GitHub Issues** - [Report bugs or request features](https://github.com/AKS-Labs/CircleToSearch/issues)
+- **GitHub Discussions** - [Share ideas and get help](https://github.com/AKS-Labs/CircleToSearch/discussions)
+- **Telegram** - [@akslabs](https://t.me/akslabs)
+- **GitHub** - [Follow for updates](https://github.com/aks-labs)
+
+---
+
+<div align="center">
+ <p>
+ <strong>Made with ❤️ by <a href="https://github.com/akslabs">AKS Labs</a></strong>
+ </p>
+ <p>
+ <a href="https://github.com/sponsors/akslabs">☕ Support Development</a> •
+ <a href="https://github.com/AKS-Labs/CircleToSearch">⭐ Give a Star</a> •
+ <a href="https://github.com/AKS-Labs/CircleToSearch/fork">🍴 Fork & Contribute</a>
+ </p>
+ <p style="color: #666; margin-top: 30px; font-size: 12px;">
+ Inspired by Google's Circle to Search • Open Source • Android Native
+ </p>
+</div>
diff --git a/app/src/main/java/com/akslabs/circletosearch/CircleToSearchAccessibilityService.kt b/app/src/main/java/com/akslabs/circletosearch/CircleToSearchAccessibilityService.kt
index 21eba61..3061af2 100644
--- a/app/src/main/java/com/akslabs/circletosearch/CircleToSearchAccessibilityService.kt
+++ b/app/src/main/java/com/akslabs/circletosearch/CircleToSearchAccessibilityService.kt
@@ -52,7 +52,7 @@ class CircleToSearchAccessibilityService : AccessibilityService() {
if (bubbleView != null) return // Already shown
val params = WindowManager.LayoutParams(
- 150, 150,
+ 100, 100,
WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
diff --git a/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt b/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
index 74840fc..ddfc905 100644
--- a/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
+++ b/app/src/main/java/com/akslabs/circletosearch/ui/CircleToSearchScreen.kt
@@ -76,6 +76,7 @@ import androidx.compose.ui.graphics.drawscope.Stroke
import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
+import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.viewinterop.AndroidView
@@ -822,25 +823,42 @@ fun CircleToSearchScreen(
modifier = Modifier.align(Alignment.CenterEnd),
verticalAlignment = Alignment.CenterVertically
) {
+
IconButton(onClick = {
- val intent = android.content.Intent(android.content.Intent.ACTION_VIEW, android.net.Uri.parse("https://github.com/aks-labs"))
+ val intent = android.content.Intent(android.content.Intent.ACTION_VIEW, android.net.Uri.parse("https://github.com/sponsors/aks-labs"))
context.startActivity(intent)
- }) {
- Icon(Icons.Default.Code, "Github", tint = Color.White)
+ }, modifier = Modifier.size(32.dp)) {
+ Icon(
+ painter = painterResource(id = com.akslabs.circletosearch.R.drawable.donation),
+ contentDescription = "Donate",
+ tint = Color.White,
+ modifier = Modifier.size(25.dp)
+ )
}
- Spacer(modifier = Modifier.width(4.dp))
+ Spacer(modifier = Modifier.width(3.dp))
IconButton(onClick = {
- val intent = android.content.Intent(android.content.Intent.ACTION_VIEW, android.net.Uri.parse("https://github.com/sponsors/akslabs"))
+ val intent = android.content.Intent(android.content.Intent.ACTION_VIEW, android.net.Uri.parse("https://github.com/aks-labs"))
context.startActivity(intent)
- }) {
- Icon(Icons.Default.Favorite, "Donate", tint = Color.White)
+ }, modifier = Modifier.size(32.dp)) {
+ Icon(
+ painter = painterResource(id = com.akslabs.circletosearch.R.drawable.github),
+ contentDescription = "Github",
+ tint = Color.White,
+ modifier = Modifier.size(23.dp)
+ )
}
- Spacer(modifier = Modifier.width(4.dp))
+
+ Spacer(modifier = Modifier.width(3.dp))
IconButton(onClick = {
val intent = android.content.Intent(android.content.Intent.ACTION_VIEW, android.net.Uri.parse("https://t.me/akslabs"))
context.startActivity(intent)
- }) {
- Icon(Icons.Default.Send, "Telegram", tint = Color.White)
+ }, modifier = Modifier.size(32.dp)) {
+ Icon(
+ painter = painterResource(id = com.akslabs.circletosearch.R.drawable.telegram),
+ contentDescription = "Telegram",
+ tint = Color.White,
+ modifier = Modifier.size(23.dp)
+ )
}
}
}
diff --git a/app/src/main/res/drawable/donation.xml b/app/src/main/res/drawable/donation.xml
new file mode 100644
index 0000000..8e839e5
--- /dev/null
+++ b/app/src/main/res/drawable/donation.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="960"
+ android:viewportHeight="960">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M558,816Q558,816 558,816Q558,816 558,816L796,742Q791,733 781.5,726.5Q772,720 760,720L558,720Q531,720 515,718Q499,716 482,710L425,691Q409,686 402,671Q395,656 400,640Q405,624 419.5,616.5Q434,609 450,614L492,628Q509,633 530.5,636Q552,639 589,640L593,640Q595,640 596.5,640Q598,640 600,640Q600,629 593.5,619Q587,609 578,606L344,520Q344,520 344,520Q344,520 344,520L280,520L280,740L558,816ZM537,894L280,822L280,822Q272,848 248.5,864Q225,880 200,880L120,880Q87,880 63.5,856.5Q40,833 40,800L40,520Q40,487 63.5,463.5Q87,440 120,440L344,440Q351,440 358,441.5Q365,443 371,445L606,532Q639,544 659.5,574Q680,604 680,640L760,640Q810,640 845,673Q880,706 880,760Q880,782 868.5,794.5Q857,807 833,815L583,893Q572,897 560,897Q548,897 537,894ZM120,800Q120,800 120,800Q120,800 120,800L200,800Q200,800 200,800Q200,800 200,800L200,520Q200,520 200,520Q200,520 200,520L120,520Q120,520 120,520Q120,520 120,520L120,800ZM640,488Q625,488 610.5,482.5Q596,477 584,466L474,358Q443,328 421.5,291.5Q400,255 400,212Q400,157 438.5,118.5Q477,80 532,80Q564,80 592,93.5Q620,107 640,130Q660,107 688,93.5Q716,80 748,80Q803,80 841.5,118.5Q880,157 880,212Q880,255 859,291.5Q838,328 807,358L696,466Q684,477 669.5,482.5Q655,488 640,488ZM640,408L749,301Q768,282 784,260.5Q800,239 800,212Q800,190 785,175Q770,160 748,160Q734,160 721.5,165.5Q709,171 700,182L671,217Q659,231 640,231Q621,231 609,217L580,182Q571,171 558.5,165.5Q546,160 532,160Q510,160 495,175Q480,190 480,212Q480,239 496,260.5Q512,282 531,301L640,408Q640,408 640,408Q640,408 640,408ZM640,254Q640,254 640,254Q640,254 640,254L640,254Q640,254 640,254Q640,254 640,254Q640,254 640,254Q640,254 640,254Q640,254 640,254Q640,254 640,254L640,254Q640,254 640,254Q640,254 640,254L640,254Q640,254 640,254Q640,254 640,254Q640,254 640,254Q640,254 640,254Q640,254 640,254Q640,254 640,254Z"/>
+</vector>
diff --git a/app/src/main/res/drawable/github.xml b/app/src/main/res/drawable/github.xml
new file mode 100644
index 0000000..982be0b
--- /dev/null
+++ b/app/src/main/res/drawable/github.xml
@@ -0,0 +1,21 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+
+ <path
+ android:fillColor="#000000"
+ android:pathData="M12,2C6.48,2 2,6.48 2,12c0,4.42 2.87,8.17 6.84,9.5
+ 0.5,0.09 0.66,-0.22 0.66,-0.47 0,-0.23 0,-0.82 0,-1.61
+ -2.78,0.61 -3.37,-1.34 -3.37,-1.34 -0.46,-1.16 -1.12,-1.47
+ -1.12,-1.47 -0.91,-0.62 0.07,-0.61 0.07,-0.61 1,0.07 1.53,1.03
+ 1.53,1.03 0.9,1.52 2.36,1.08 2.94,0.83 0.09,-0.65 0.35,-1.08
+ 0.63,-1.33 -2.22,-0.25 -4.56,-1.11 -4.56,-4.95 0,-1.09 0.39,-1.98
+ 1.03,-2.68 -0.1,-0.25 -0.45,-1.27 0.1,-2.65 0,0 0.84,-0.27
+ 2.75,1.02A9.56,9.56 0 0 1 12,6.8c0.85,0 1.71,0.11 2.51,0.32
+ 1.9,-1.29 2.74,-1.02 2.74,-1.02 0.56,1.38 0.21,2.4 0.1,2.65
+ 0.64,0.7 1.03,1.59 1.03,2.68 0,3.85 -2.34,4.7 -4.57,4.95
+ 0.36,0.31 0.68,0.92 0.68,1.86 0,1.34 0,2.42 0,2.75
+ 0,0.26 0.16,0.57 0.67,0.47A10,10 0 0 0 22,12c0,-5.52 -4.48,-10 -10,-10z" />
+</vector>
diff --git a/app/src/main/res/drawable/telegram.png b/app/src/main/res/drawable/telegram.png
new file mode 100644
index 0000000..f362708
Binary files /dev/null and b/app/src/main/res/drawable/telegram.png differ
diff --git a/compile_check.txt b/compile_check.txt
new file mode 100644
index 0000000..5249758
Binary files /dev/null and b/compile_check.txt differ
diff --git a/error_log.txt b/error_log.txt
new file mode 100644
index 0000000..42fe38d
Binary files /dev/null and b/error_log.txt differ