Skip to content

this app helps users manage their digital well-being by allowing them to temporarily suspend access to certain apps on their devices.

Notifications You must be signed in to change notification settings

zeon-X/Digital-Detox-Challenge

Repository files navigation

Digital Detox Challenge

The Digital Detox Challenge app helps users manage their digital well-being by allowing them to temporarily suspend access to certain apps on their devices. With a simple and intuitive interface, users can set specific times to block distracting apps, track usage, and improve focus.


Features

  • App Blocking: Select apps to be temporarily blocked during specified time intervals.
  • Accessibility Service Integration: Uses Accessibility Service to enforce app blocking and monitor app activity.
  • Firebase Authentication: Users can sign up and log in securely using email and password.
  • Usage Statistics: Track app usage with detailed stats to encourage healthy usage patterns.
  • User-Friendly Interface: Clean and straightforward design to easily manage and view app blocking schedules.

Project architecture

Workflow

Frame 22


Project Structure

Digital-Detox-Challenge/
├── .gitignore
├── README.md
├── build.gradle.kts
├── gradle.properties
├── gradlew
├── gradlew.bat
├── settings.gradle.kts
├── app/
│   ├── build.gradle.kts
│   ├── src/
│   │   ├── main/
│   │   │   ├── AndroidManifest.xml
│   │   │   ├── java/com/aleehatech/digitaldetoxchallange/
│   │   │   │   ├── FocusModeAccessibilityService.kt
│   │   │   │   ├── MainActivity.kt
│   │   │   │   ├── ui/
│   │   │   │   │   ├── auth/
│   │   │   │   │   │   ├── SigninActivity.kt
│   │   │   │   │   │   ├── SignupActivity.kt
│   │   │   │   │   ├── home/
│   │   │   │   │   │   ├── HomeFragment.kt
│   │   │   │   │   │   ├── AppAdapter.kt
│   │   │   │   │   ├── stats/
│   │   │   │   │   │   ├── StatsFragment.kt
│   │   │   │   │   │   ├── StatsAdapter.kt
│   │   │   │   │   ├── blockscreen/
│   │   │   │   │   │   ├── BlockScreenActivity.kt
│   │   │   │   └── ...
│   │   └── res/
│   │       └── layout/...
└── ...


Getting Started

Follow these steps to clone and set up the project on your local machine:

Prerequisites

  • Android Studio: Ensure Android Studio is installed.
  • Firebase Account: Required for Firebase Authentication setup.
  • CocoaPods (if using an iOS device/emulator).
  • Gradle and Java SDK: Installed and properly configured.

Installation

  1. Clone the Repository:
    git clone https://github.com/zeon-X/Digital-Detox-Challenge.git
    cd Digital-Detox-Challenge
  2. Open the Project in Android Studio
  • Start Android Studio and select Open an existing Android Studio project.
  • Navigate to the cloned Digital-Detox-Challenge directory and select it.
  1. Sync Gradle
  • Allow Android Studio to sync the Gradle files automatically.
  • Ensure all dependencies are downloaded correctly.
  1. Configure Firebase Authentication
  • Set up a Firebase project in the Firebase Console.
  • Add an Android app in your Firebase project, download the google-services.json file, and place it in the app/ directory.
  1. Enable Accessibility Services
  • In FocusModeAccessibilityService.kt, configure any required permissions or adjustments to monitor and block apps.
  • Ensure the service is enabled in the device’s Accessibility settings when testing.
  1. Build and Run
  • Connect an Android device or use an emulator.
  • Click Run or use Shift + F10 to build and deploy the app.

Screenshots

Below are some screenshots showcasing the app's functionality:

ScreenShots ScreenShots ScreenShots
Screenshot_20241114_092003 Screenshot_20241114_091653 Screenshot_20241114_091758
Screenshot_20241114_091737 Screenshot_20241114_091820 Screenshot_20241114_091928
Screenshot_20241114_091918 Screenshot_20241114_091938 Screenshot_20241114_091949

Acknowledgments

  • Thanks to Firebase for providing seamless authentication.
  • Special mention to the Android Developer Documentation for comprehensive guides.

About

this app helps users manage their digital well-being by allowing them to temporarily suspend access to certain apps on their devices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages