# EnRep Offline Android POC

This is a separate Android-first proof of concept for an offline surveyor companion app.

The POC uses native Android Java with SQLite and no third-party runtime libraries. That keeps it small, fast, and compatible with a wide range of Android devices.

## What It Proves

- Morning sync can download selected clients and due/not-inspected items.
- Surveyors can work offline from local device storage.
- Surveyors can add new items offline.
- Surveyors can create reports against existing or newly added items.
- End-of-day sync can push queued item/report actions back to the main system.

At this stage the sync uses mock data and a local queue. The next step is adding PHP API endpoints in the main system and replacing the mock sync with real HTTP calls.

## Open In Android Studio

Open this folder:

```text
W:\app
```

Then run the `app` configuration on an emulator or Android device.

## Key Files

- `app/src/main/java/uk/enrep/offline/MainActivity.java`
- `app/src/main/java/uk/enrep/offline/OfflineDb.java`
- `docs/sync-contract.md`

