Android WebView JavaScript-Interface-Bridge App Generator

Quickly and easily generate an Android Studio project with a WebView Fragment, JavaScript-interface-bridge, and local HTML file and image.

To generate your own Android Studio project,
please Sign In or Create an Account.

To see how it all works, try the free
Android Pie Chart Code Generator

The generated zip file includes:

  • Source code - Java classes and XML layouts for:
    • Activity and Fragment containing WebView and JavaScript interface
    • Optional Toolbar with Activity title
    • Local HTML file with built-in communication to the Fragment, including:
      • Log messages in logcat
      • Launch an alert dialog with custom dialog title
      • Show a full-screen image from a button on the HTML page
    • Choice of local image file as a full-screen background, or centered and resizable when clicked
  • Material design - Customized primary and accent colors
  • Support files - Android manifest, launcher icon and gradle files

Sign In and download your zip file today!

Example Screenshot and Video

Here is a screenshot of the WebView with a background image, and a video showing the WebView with a centered image that is resizable within the HTML page and as a full-screen dialog.

App with Background Image

Project Information

Project Name:
Package Name:

App and Activity Information

Application Name:
Activity Name:
Activity Title:

Theme and Colors

Activity Theme:
Material Primary Color:
Material Accent Color:
Material Color Preview:

Image Information

Image Display:
Full-sized background
Centered and resizable
With button for full-screen image

JavaScript Interface Information

  • Upgraded the generated build files per Migrate to Android Plugin for Gradle 3.0.0
    • Referenced Google repository in project build.gradle
    • Removed deprecated buildToolsVersion from module build.gradle
    • Raised compileSdkVersion and targetSdkVersion to 27
    • Raised versions of SDK Tools Support libraries to 27.1.1
    • Changed "compile" dependency keyword to "implementation"
    • Changed "androidTestCompile" dependency keyword to "androidTestImplementation"
    • Changed "testCompile" dependency keyword to "testImplementation"
  • Added optional button for full-screen image
  • Store the image URL in strings.xml and pass it to the HTML file through the JavaScript bridge
  • Store the image sizes (if applicable) in integers.xml and pass them to the HTML file through the JavaScript bridge
  • Added option of full-sized background image
  • Custom Activity always extends AppCompatActivity so the Toolbar text color can be set for the selected Material design color
  • Removed AppCompat theme because of the Material design's black-and-grey color option
  • Initial release plus enhancements through December 2016


As of Version 2.0 of all mobile application templates, the GNU General Public License has been retired in favor of an End User License Agreement (EULA) that more accurately reflects the nature of proprietary software that is available by subscription.

In summary, the EULA grants Licensees ownership of and permission to use and sell all End Products generated from the downloaded Software, but you are restricted from re-distributing or reselling the Software itself, except as packaged in the End Products as needed to make them functional.

Please read the EULA in full. A copy is included in each generated Android Studio project, and referenced in the comment header of each Java source file. The retired GNU General Public License is archived here for your reference.

Please send any questions to


Information about your mobile app submitted to this web site is not permanently stored, logged on our servers, used for internal or external analytics, or shared with any other external system or third party. For more information see this websites's Privacy Policy

Copyright ©