The purpose is to give a context to a WebView linked with an Activity and have events communication between them.
This jar is based on a MVC pattern, and help you to map your view calls into a xml file config for both directions. You need to create your badger-config.xml, this is the first step to map your html views and the java methods code without the needy to use a Server between this technologies.
To use this functionality you need to add in your code the next lines into the onCreate method of all the activities you want to use this.
This file is created to set a behavior into the web views.
Please check the basic config for this; first you need to create into your project->assets, a new xml filewith the name: badger-config.xml
The basic information for badger-config.xml is this:
<id-WebView> ------------> Web View name in the xml activity
<class-name> ------------> The java activity class package with name
<html-interface-name> ---> one method identifier for your html code
<url> -------------------> Html path and name
<webviews>
<view-services>
<view-service>
<id-WebView>homeView</id-WebView>
<class-name>com.honey.jsService.Gen</class-name>
<html-interface-name>MyView</html-interface-name>
<url>file:///android_asset/web/home.html</url>
</view-service>
</view-services>
</webviews>
Create your folder web into assets folder, and start coding your html here. This is a basic example on html:
Set the method in java.