3 Android app
Paolo Iommarini edited this page 2026-07-01 13:34:12 +00:00

Android app

You can build an Android app for your blog/community.

Getting ready

Download source code with git

git clone https://git.piblog.org/sakya/website-to-apk.git
chmod u+x make.sh
chmod u+x gradlew

Create the configuration file:

cd website-to-apk
touch webapk.conf

Edit the configuration file webapk.conf with this content.
Change the id, name, mainUrl and icon to suit your needs.

id = piBlog                        # Application ID (will be com.myapp.webtoapk)
name = piBlog                      # Display name of the app
mainURL = https://piBlog.org       # Target website URL
icon = piBlog.png                  # Path to your app icon (PNG format)

allowSubdomains = true              # Allow navigation between example.com and sub.example.com
requireDoubleBackToExit = true      # Require double back press to exit app

enableExternalLinks = true          # Allow external links
openExternalLinksInBrowser = true   # If allowed: open external links in browser or WebView
confirmOpenInBrowser = true         # Show confirmation before opening external browser

allowOpenMobileApp = true           # Block external app links/schemes

cameraEnabled = true                # Allow access to the camera for WebRTC or scanning
microphoneEnabled = true            # Allow access to the microphone for audio recording or calls

enablePullToRefresh = true

MediaPlaybackRequiresUserGesture = false
biometricEnabled = false
spinnerOnPageLoad = true

Build the app

./make.sh keygen
./make.sh build

The apk is created in the current directory.