Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This is a simple Scala Android application that demonstrates how Javascript within an Android WebView can call native Android code. It also shows how Android can poly-fill core browser features such as intercepting console messages.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
project
src
tests/src/main
.gitignore
README.md

README.md

Android and Javascript

This is a simple Scala Android application that demonstrates how Javascript within an Android WebView can call native Android code. It also shows how Android can polyfill core browser features such as intercepting console messagse.

In the future I will add additional examples of how Android can interact with local Javascript.

Required Libraries

How to Build

Set Required env variable

export ANDROID_HOME=path_to_android-sdk-mac_86

Enter the SBT console

# sbt

If you device is connected via USB

# android:install-device

To use Emulator

# android:emulator-start <my_avd> (use <tab> to get a list of avds)

# android:start-emulator

Let me know if you have any questions.

Something went wrong with that request. Please try again.