8000 GitHub - NNKTV28/Elecriciview
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NNKTV28/Elecriciview

Repository files navigation

app_icon

Elecriciview

Overview

Elecriciview is an Android application designed to view and analyze electricity consumption data stored in JSON format. The app allows users to browse through JSON files in a selected folder, view detailed electricity consumption information, and navigate between file listings and detailed views.

Features

  • Folder Selection: Choose a folder containing electricity data JSON files
  • File Browsing: View a sorted list of JSON files (newest first)
  • Persistent Storage: Remembers the last selected folder
  • Detailed View: Examine the contents of individual electricity consumption files
  • User-Friendly Interface: Material Design 3 components with intuitive navigation

Technical Details

Architecture

  • UI Framework: Jetpack Compose
  • File Access: DocumentFile API for storage access framework compatibility
  • Data Parsing: JSON parsing for electricity consumption data
  • State Management: Compose state management for UI updates

Key Components

  • MainActivity: Main entry point containing the app's Compose UI
  • ElectricityDetailsScreen: Composable for displaying detailed electricity data
  • Storage permission handling via ActivityResultContracts

Getting Started

Prerequisites

  • Android Studio Arctic Fox (2020.3.1) or newer
  • Minimum SDK: 21 (Android 5.0 Lollipop)
  • Target SDK: 33 (Android 13)

Building the Project

  1. Clone the repository
  2. Open the project in Android Studio
  3. Sync Gradle files
  4. Build the project using:
./gradlew assembleDebug

Installation

Install the app on your device using:

./gradlew installDebug

Usage

  1. Launch the app
  2. Tap "Select Folder" to choose a directory containing electricity JSON files
  3. Browse through the list of available JSON files
  4. Tap on any file to view its detailed electricity consumption data
  5. Use the back button to return to the file list

File Format

The app expects JSON files with electricity consumption data. The JSON structure should include details about electricity usage, which will be displayed in the details screen.

Permissions

  • READ_EXTERNAL_STORAGE: Required to access JSON files

License

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

Contributing

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

Contact

Author: NNKtv28 For any inquiries, please open an issue in the repository. image image image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0