This is an Android Wrapper application to create native Android Apps from an offline-capable Progressive Web App, cloned from xtools-at/Android-PWA-Wrapper
This has been changed to match the requirements of "is-it-healthy"
- Sets up a WebView just the way PWAs/SPAs like it (e.g. enables App cache and DOM storage, ...).
- Shows a loading spinner while loading the Web App.
- Opens all external URLs in the device's Browser instead.
- Is compatible down to JellyBean, although it's recommended to build for SDK Version >= 19 (KitKat). Building for SDK Version >= 21 (Lollipop) puts you on the safe side without having to worry too much about Browser support.
- APK-size < 1.7 MB. The latest cat video from WhatsApp weighs heavier ;)
- Get Android Studio 3.4+
- Put your Web App's URL in WEBAPP_URL in
app\src\main\java\at\xtools\pwawrapper\Constants.java - Replace app_name in
app\src\main\res\values\strings.xmlwith the name of your App - Add your own primary colors to
app\src\main\res\values\colors.xml(colorPrimary, colorPrimaryDark, colorPrimaryLight) - Change the package name in
app\build.gradle, applicationId - Build App in Android Studio
- Open the the current working directory in Android Studio
- Change the app name in
app\src\main\res\values\strings.xmlin line 2 - Build APK in Android Studio
-
If you are using a computer or an iphone, click these:
-
If you using your android phone:
- Download the latest
.apkfrom the Releases Page - Install it by following the guide below and stay healthy!
- Download the latest
- Download the .apk
- Click "Download Anyway"
- Open the Downloaded File
- Click "Install"
- Click "More Details"
- Click "Install Anyway"
- App has been installed successfully!
- Open the app from your launcher
Credits: xtools-at/Android-PWA-Wrapper
