This guide explains how to convert Revision Master into a native Android application (APK) using Capacitor, including how to customize your app icon, splash screen, and settings.
Before you begin, ensure you have the following installed on your local machine:
- Node.js (v18 or higher)
- Android Studio (with Android SDK and Build Tools)
- Java Development Kit (JDK) (v17 is recommended for modern Android)
If you haven't already initialized the Android project in your local environment:
-
Install Dependencies:
npm install
-
Build the Web Project:
npm run build
-
Add Android Platform:
npx cap add android
The logo you see on your phone's home screen before opening the app is called the Native Icon. Because of mobile security, this cannot be changed easily from inside the app settings. You must set it during the build process:
-
Prepare your source image:
- Use the
src/assets/logo.svgI created. - Export it as a high-quality PNG (1024x1024px) named
icon-only.png. - Place it in an
assets/folder in your project root.
- Use the
-
Generate Native Assets: Run this command to "inject" your logo into all the required Android system folders:
npx @capacitor/assets generate --android
This replaces the default Capacitor logos in the Android system with your custom branding.
-
Verify in Android Studio: When you build your APK, Android Studio will now use this logo for the installer and the home screen icon.
Edit capacitor.config.ts in the root directory:
const config: CapacitorConfig = {
appId: 'com.yourname.revisionmaster', // Change this to your unique bundle ID
appName: 'My Revision App', // Change this to your desired App Name
webDir: 'dist',
// ...
};To change the App Name as it appears on the phone's home screen, edit:
android/app/src/main/res/values/strings.xml
<string name="app_name">My Revision App</string>-
Sync your web changes to Android:
npm run build
npx cap copy android
-
Open the project in Android Studio:
npx cap open android
-
In Android Studio:
- Wait for Gradle to finish syncing.
- Go to Build > Build Bundle(s) / APK(s) > Build APK(s).
- Once finished, a notification will appear. Click Locate to find your
app-debug.apk.
To create a signed APK for distribution:
- In Android Studio, go to Build > Generate Signed Bundle / APK...
- Select APK.
- Create a new Key Store (keep this file safe!).
- Select release build variant.
- The resulting APK will be ready for installation on any device.
- Live Reload: During development, you can run
npx cap run android -l --externalto see changes instantly on your device. - App Logo Sync: The in-app "App Logo" setting changes the logo inside the app. To change the home screen logo, follow the asset generation steps above.
- Permissions: If you add features like Camera or Geolocation, remember to update
AndroidManifest.xml.
Developed with ❤️ by MKR Infinity