This is a template project for Android Studio that allows you to create an android webview application in minutes. You can use it to create a simple app for your website or as a starting point for your HTML5 based android app.
Download or clone this repository and import it into Android Studio.
-
Open
app/src/main/res/values/strings.xmland editapp_nameandweb_urlstrings. -
Open the
app/scr/main/java/com.example.app/MyWebViewClient.javafile and replaceexample.comon line 16 with your hostname.String hostname = "example.com";
-
If you want to change package name, go to
app/build.gradleand change it on line 7./
Example:
applicationId "com.example.app"If you want to create a local HTML5 android app put all your files (including your index.html) in the assets directory
If you want to change package name, go to app/build.gradle and change it on line 7./
Example:
applicationId "com.example.app"To change application icon, replace files in app/src/main/res/mipmap-* with your icon.