Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”¦ Flashlight - Android Torch App

A modern, sleek Android flashlight application with brightness control and strobe mode. Built with Kotlin and the Camera2 API.

Download APK

Min SDK Target SDK Kotlin License Release


πŸ“₯ Quick Install

  1. Download the APK on your Android phone
  2. Open the downloaded file
  3. Tap Install (enable "Install from unknown sources" if prompted)
  4. Done! πŸŽ‰

✨ Features

Feature Description
πŸ“± One-Tap Toggle Tap the power button to turn flashlight on/off
πŸ”† Brightness Control Adjust flashlight intensity with a smooth slider (Android 13+ with supported hardware)
⚑ Strobe Mode Blinking light effect with adjustable speed (1-20 Hz)
πŸ’« Smooth Animations Satisfying button animations and glow effects
πŸ“³ Haptic Feedback Tactile vibration feedback for all interactions
πŸ”’ Permission Handling Graceful camera permission requests
⚑ Battery Efficient Automatically turns off when app goes to background

πŸ“± Screenshots

The app features a deep dark theme with electric amber accents for a premium look and feel.

πŸ“‹ Requirements

  • Android 6.0 (API 23) or higher
  • Device with camera flash
  • For brightness control: Android 13 (API 33) or higher with supported hardware

πŸ”§ Brightness Control Support

The brightness/strength control feature uses the Camera2 API introduced in Android 13 (Tiramisu).

Device Support
Android 13+ with hardware support βœ… Full brightness control
Older devices or unsupported hardware ⚑ Standard on/off only

The app automatically detects your device's capabilities and adjusts the UI accordingly.

⚑ Strobe Mode

The strobe feature provides a blinking light effect:

  • Speed Range: 1 Hz (slow) to 20 Hz (fast)
  • Use Cases: Signaling, parties, emergency attention
  • Safety: Automatically stops when app goes to background

πŸ› οΈ Building the Project

Prerequisites

  • Android Studio Hedgehog (2023.1.1) or later
  • JDK 17 or 21

Build Steps

  1. Clone this repository
git clone https://github.com/YOUR_USERNAME/flashlight.git
cd flashlight
  1. Open in Android Studio or build from command line
# Build debug APK
./gradlew assembleDebug

# Build release APK
./gradlew assembleRelease

# Install on connected device
./gradlew installDebug
  1. APK location: app/build/outputs/apk/debug/app-debug.apk

πŸ“ Project Structure

app/
β”œβ”€β”€ src/main/
β”‚   β”œβ”€β”€ java/com/flashlight/torch/
β”‚   β”‚   └── MainActivity.kt          # Main activity with flashlight logic
β”‚   β”œβ”€β”€ res/
β”‚   β”‚   β”œβ”€β”€ layout/
β”‚   β”‚   β”‚   └── activity_main.xml    # Main UI layout
β”‚   β”‚   β”œβ”€β”€ drawable/                # Custom drawables & icons
β”‚   β”‚   β”œβ”€β”€ values/
β”‚   β”‚   β”‚   β”œβ”€β”€ colors.xml           # Color palette
β”‚   β”‚   β”‚   β”œβ”€β”€ strings.xml          # String resources
β”‚   β”‚   β”‚   β”œβ”€β”€ themes.xml           # App theme
β”‚   β”‚   β”‚   └── dimens.xml           # Dimensions
β”‚   β”‚   └── mipmap-*/                # App icons
β”‚   └── AndroidManifest.xml          # App manifest
└── build.gradle.kts                  # App-level build config

🎨 Design

The app features a deep dark theme with electric amber accents:

Color Hex Usage
Background #0A0A0F Main background
Surface #1E1E2E Cards and elevated surfaces
Primary #FFB800 Accent color, active states
Text Primary #FFFFFF Main text
Text Secondary #8A8A9A Subtle text

πŸ” Permissions

Permission Purpose
CAMERA Required to control the flashlight LED
FLASHLIGHT Legacy permission for flash access
VIBRATE Haptic feedback on button presses

πŸ“„ License

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

🀝 Contributing

Contributions are welcome! Feel free to:

  • πŸ› Report bugs
  • πŸ’‘ Suggest features
  • πŸ”§ Submit pull requests

⚠️ Disclaimer

  • Strobe Warning: Flashing lights may cause discomfort or seizures in people with photosensitive epilepsy. Use strobe mode responsibly.
  • The app requires a device with a camera flash to function.

Made with ❀️ for Android

About

A modern, sleek Android flashlight application with brightness control and strobe mode.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages