Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: piotrekpa/AndroidInterface
base: 27e147c
head fork: piotrekpa/AndroidInterface
compare: 5ab5e8e
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 6 additions and 5 deletions.
  1. +6 −5
@@ -9,7 +9,7 @@ AndroidInterface enables you to execute methods from Android JavascriptInterface
Create class, which inherits for the JavascriptInterfaceAbstract from android/ file.
public class FooJSInterface extends JavascriptInterfaceAbstract {
Implement your methods.
@@ -18,15 +18,15 @@ Remeber that this method:
* the last argument must be a string variable - this is the callback,
* returns results by executing this.runCallback(String callback, JSONArray results) method. The result is an optional argument
+ ```
import org.json.JSONArray;
import android.webkit.WebView;
public class FooJSInterface extends JavascriptInterfaceAbstract {
public SomeJSInterface(WebView web){
public void bar(String callback){
JSONArray result;
// block of code
@@ -36,8 +36,9 @@ Remeber that this method:
this.runCallback(callback, result);
+ ```
Add to your webView in activity. For example:

No commit comments for this range

Something went wrong with that request. Please try again.