Welcome to the LightApp an Android WebView Template project! This template allows you to create an Android WebView application in just minutes. Whether you want to build a simple app for your website or kickstart your HTML5-based Android app, this template has got you covered.
Get started now and bring your web content to Android! 📱
You can either download the project as a ZIP file or clone it using Git:
git clone https://github.com/zsuroy/lightapp.gitOpen Android Studio and import the project from the downloaded/cloned repository.
If you want your app to display content from a remote website, follow these steps:
- Open
MainActivity.java. - Uncomment:
mWebView.loadUrl("https://example.com");
- Replace
https://example.comwith your website's URL.
If you want to create a local HTML5-based app, follow these steps:
-
Open
MainActivity.java. -
Uncomment:
mWebView.loadUrl("file:///android_asset/index.html");
-
Place all your files (including
index.html) in theassetsdirectory. -
Tips: For local HTML5 apps, place all your files (HTML, CSS, JS, etc.) in the
assetsdirectory.
Here’s a quick overview of the project structure:
📁 app
└── 📁 src
└── 📁 main
├── 📁 java
│ └── 📄 MainActivity.java
├── 📁 res
│ └── 📁 layout
│ └── 📄 activity_main.xml
└── 📁 assets
└── 📄 index.html (for local HTML5 apps)
- Simple & Clean Code: Easy to understand and customize.
- Remote or Local Content: Choose between loading a website or local HTML5 files.
- Quick Setup: Get your app running in minutes.

