<- Return Home

Docs


Bill Check App

The better explain to use this jar is building an app. For this purpouse you can follow the next steps an create a Bill Check App

you can download this example from Download Examples as BillCheckTest

The first think it's create the Activities(Views) for the application

Create the model for the application

Let's go to create the badger-config.xml



<webviews>
  <view-services>
    <view-service>
      <id-WebView>billBill</id-WebView>
      <class-name>com.test.billchecktest.OneBillActivity</class-name>
      <html-interface-name>MyView</html-interface-name>
      <url>file:///android_asset/web/OneBill.html</url>  
    </view-service>
    <view-service>
      <id-WebView>oneBill</id-WebView>
      <class-name>com.test.billchecktest.MainActivity</class-name>
      <html-interface-name>MyView</html-interface-name>
      <url>file:///android_asset/web/billView.html</url>  
    </view-service>
  </view-services>
</webviews>

                    

Now we going to create the web folder and put here our html, css and js files



finally we call the Honey Badger to map in each Activity that you want to handle a WebView