Turn your websites into a native android app within a few minutes, with splash screen support and even more!
The WebsiteAsApp Android Template allows you to quickly convert a website into a native Android application. Users only need to edit a simple configuration file to specify the website URL, written in simple java. The application features a splash screen with loading ability at startup. Feel free to directly implement or modify even further!
Follow these steps to integrate the template into your Android Studio project:
-
Clone the Repository:
git clone https://github.com/SharafatKarim/WebsiteAsApp
-
Open in Android Studio:
Open Android Studio and select "Open an existing Android Studio project." Navigate to the cloned repository and select the
WebsiteAsApp
directory. -
Edit Configuration:
Open the
app/src/main/res/values/strings.xml
file and modify thewebsite_url
string to the URL of the website you want to convert.<resources> <string name="app_name">WebsiteAsApp</string> <string name="website_url">https://www.example.com/</string> </resources>
-
Change App Icon:
Users can change the app icon by replacing the existing icon files located in the app/src/main/res directory. Feel free to simple replace or append!
TIP: There are several online generators to automate this process of generating android app icons.
-
Customize Splash Screen:
The application features a splash screen with loading ability. Customize the splash screen by modifying the layout and styles in
res/layout/activity_splash.xml
andres/values/styles.xml
. -
Build and Run:
Build and run the application on an Android emulator or a physical device.
- Converts a website into a native Android app.
- Supports JavaScript and DOM storage.
- Implements a WebView for seamless website integration.
- Splash screen with loading ability at startup.
- Provides a customizable UI with a progress bar and loading screen.
Feel free to customize the template according to your requirements. You can modify the UI, add features, or tweak the WebView settings. The splash screen layout and styles can be adjusted in the res/layout/activity_splash.xml
and res/values/styles.xml
files. Feel free to extend.
This project can serve as a base model and can be extended further with additional features or improvements. Consider contributing to the project by creating an issue or submitting a pull request.
If you encounter any issues or have suggestions for improvements, please create an issue or submit a pull request.
This template is licensed under the MIT License.