# cpaynex/frame-xtv-apk-for-tv architecture

> Architecture diagram of the GitHub repository cpaynex/frame-xtv-apk-for-tv, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cpaynex/frame-xtv-apk-for-tv
- Repository: https://github.com/cpaynex/frame-xtv-apk-for-tv

## Overview

frameXTV is a small Android TV/Fire TV WebView wrapper, not the implementation of the hosted website. Its principal flow is launching the activity, creating a WebView, and loading the configured site. The excerpt shows browser settings, cookie support, fullscreen-video handling, back navigation, and WebView lifecycle management; the remote site's internal capabilities are outside this repository.

Main entry points: [`app/src/main/java/xyz/framextv/tv/MainActivity.java`](https://github.com/cpaynex/frame-xtv-apk-for-tv/blob/main/app/src/main/java/xyz/framextv/tv/MainActivity.java) (WebView)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Android wrapper"]
  node_activity["Main activity<br/>[MainActivity.java]"]
  node_webview["WebView<br/>[MainActivity.java]"]
  node_fullscreen["Fullscreen video<br/>[MainActivity.java]"]
end

node_viewer(("TV user"))
node_website["frameXTV website"]

node_viewer -->|"launches"| node_activity
node_activity -->|"creates"| node_webview
node_webview -->|"loads"| node_website
node_webview -->|"shows video"| node_fullscreen
node_activity -->|"handles back and lifecycle"| node_webview

click node_activity "https://github.com/cpaynex/frame-xtv-apk-for-tv/blob/main/app/src/main/java/xyz/framextv/tv/MainActivity.java"
click node_webview "https://github.com/cpaynex/frame-xtv-apk-for-tv/blob/main/app/src/main/java/xyz/framextv/tv/MainActivity.java"
click node_fullscreen "https://github.com/cpaynex/frame-xtv-apk-for-tv/blob/main/app/src/main/java/xyz/framextv/tv/MainActivity.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_activity,node_webview,node_fullscreen,node_viewer toneBlue
class node_website toneIndigo
```

## Components

### Android wrapper

- [Main activity](https://github.com/cpaynex/frame-xtv-apk-for-tv/blob/main/app/src/main/java/xyz/framextv/tv/MainActivity.java): `app/src/main/java/xyz/framextv/tv/MainActivity.java`
- [WebView](https://github.com/cpaynex/frame-xtv-apk-for-tv/blob/main/app/src/main/java/xyz/framextv/tv/MainActivity.java): `app/src/main/java/xyz/framextv/tv/MainActivity.java`
- [Fullscreen video](https://github.com/cpaynex/frame-xtv-apk-for-tv/blob/main/app/src/main/java/xyz/framextv/tv/MainActivity.java): `app/src/main/java/xyz/framextv/tv/MainActivity.java`

### Other components

- **TV user**
- **frameXTV website**

## Connections

- TV user → Main activity: launches (evidence: `README.md`)
- Main activity → WebView: creates (evidence: `app/src/main/java/xyz/framextv/tv/MainActivity.java`)
- WebView → frameXTV website: loads (evidence: `app/src/main/java/xyz/framextv/tv/MainActivity.java`)
- WebView → Fullscreen video: shows video (evidence: `app/src/main/java/xyz/framextv/tv/MainActivity.java`)
- Main activity → WebView: handles back and lifecycle (evidence: `app/src/main/java/xyz/framextv/tv/MainActivity.java`)
