๐ Transform any website into an Android app in seconds!
This project provides a simple, automated way to create Android apps that wrap websites in a WebView. Perfect for converting web applications, blogs, e-commerce sites, or any web content into native Android apps.
- One-command generation - Create apps instantly with a single script
- Fully automated - Updates app name, package, icon, and URL automatically
- Optimized & lightweight - Minimal dependencies, fast performance
- Android 5.0+ support - Compatible with API level 21 and above
- WebView optimized - JavaScript, DOM storage, and zoom support enabled
- Professional quality - Clean code, proper back button handling
git clone https://github.com/yourusername/android-website-wrapper.git
cd android-website-wrapperchmod +x generate_app.sh./generate_app.sh "My App Name" "https://example.com" "./path/to/icon.png"That's it! Your new app will be created in the generated_apps/ directory.
./generate_app.sh <app_name> <website_url> <icon_path> [package_name]app_name- Display name for your app (shown in launcher)website_url- URL of the website to wrap (must include http:// or https://)icon_path- Path to your app icon (PNG recommended, any size)package_name(optional) - Custom Android package name
Create a news app:
./generate_app.sh "Daily News" "https://news.example.com" "./icons/news.png"Create an e-commerce app:
./generate_app.sh "My Store" "https://shop.example.com" "./icons/store.png" "com.mycompany.store"Create a blog app:
./generate_app.sh "Tech Blog" "https://blog.example.com" "./icons/blog.png"android-website-wrapper/
โโโ README.md # This file
โโโ generate_app.sh # Main generation script
โโโ app/ # Template Android project
โ โโโ src/main/
โ โ โโโ java/ # Kotlin source files
โ โ โโโ res/ # Android resources
โ โ โโโ AndroidManifest.xml
โ โโโ build.gradle # App-level build config
โโโ gradle/ # Gradle wrapper
โโโ build.gradle # Project-level build config
โโโ libs.versions.toml # Dependency versions
โโโ generated_apps/ # Output directory
โโโ my_app_1/
โโโ my_app_2/
โโโ ...
The script automatically handles:
- โ
App Name - Updates in
strings.xml - โ Package Name - Updates throughout the project
- โ
Website URL - Replaces in
MainActivity.kt - โ App Icon - Copies to all resolution folders
- โ Source Structure - Reorganizes package directories
- โ
Build Configuration - Updates
build.gradleandAndroidManifest.xml - โ Clean Build - Generates ready-to-build project
-
Open in Android Studio
# Navigate to your generated app cd generated_apps/my_app_name
-
Open the project in Android Studio
- File โ Open โ Select the generated app folder
-
Sync and Build
- Android Studio will automatically sync Gradle
- Build โ Make Project
- Run the app on device/emulator
The generated apps include optimized WebView settings:
- JavaScript enabled
- DOM storage support
- Zoom controls (pinch-to-zoom)
- Wide viewport support
- Responsive layout handling
You can extend generated apps with:
- Push notifications
- Offline support
- File upload handling
- Custom splash screen
- Deep linking
- App-specific UI elements
Modify these files in your generated app:
res/values/colors.xml- App colorsres/values/strings.xml- App stringsres/values/themes.xml- Material themes
For best results, provide app icons that are:
- Format: PNG with transparent background
- Size: 512x512px or larger (will be automatically resized)
- Style: Simple, recognizable design
- Content: Avoid text (may become unreadable when small)
"Permission denied" error:
chmod +x generate_app.sh"Template not found" error: Make sure you're running the script from the project root directory.
Website doesn't load properly:
- Check if the URL is accessible
- Some sites block WebView loading (anti-iframe protection)
- Try adding
https://prefix if missing
Build errors in Android Studio:
- Clean and rebuild: Build โ Clean Project
- Invalidate caches: File โ Invalidate Caches and Restart
App shows blank white screen:
- Check internet connection
- Verify the website URL is correct
- Some websites require specific user agents
Back button doesn't work: The template includes proper back button handling that navigates web history.
Website features don't work: Some advanced web features may need additional WebView permissions or settings.
- Minimum Android Version: Android 5.0 (API level 21)
- Target Android Version: Android 14 (API level 35)
- Build Tools: Android Gradle Plugin 8.10.1
- Language: Kotlin
- Architecture: Single Activity with WebView
- Permissions: Internet access only
We welcome contributions! Here are ways to help:
- Report bugs - Open issues for any problems
- Request features - Suggest improvements
- Submit PRs - Fix bugs or add features
- Improve documentation - Help others understand the project
- Fork the repository
- Create a feature branch
- Make your changes
- Test with multiple website types
- Submit a pull request
This project is open source and available under the MIT License.
Created with โค๏ธ for developers who want to quickly convert websites into Android apps.
Special thanks to all contributors and the Android development community.
git clone https://github.com/yourusername/android-website-wrapper.git
cd android-website-wrapper
chmod +x generate_app.sh
./generate_app.sh "My First App" "https://github.com" "./icon.png"Happy app building! ๐ฑโจ