title: Jquery $.ChangePage callback Android
body: <p>I have a website which is displayed in a Android Webview App.</p>
  
  <p>I use JqueryMobile (1.10.2) and the ChangePage method in order to navigate through my website.
  Pages ask a webservice so they can take time to be displayed.</p>
  
  <p>I want to display a Toast (Android) during the page is loading.
  It works, but I don't know how to know when my page is loaded</p>
  
  <p>My question is:
  It is possible to know when the page is loaded by the $.ChangePage method in order to hide my Android Toast ?</p>
  
  <p>Here my code:</p>
  
  <pre><code>$('div.ui-page').swipeleft(function (e) {
      //$("#pop").popup("open");
      window.Android.showToast();
      $.mobile.changePage("mypage", {
          transition: "slide"
      });
  })
  </code></pre>
  
  <p>Into my Android App (with @JavascriptInterface):</p>
  
  <pre><code>@JavascriptInterface
  public void hideToast() {
      if(wait &gt; 0) {
          wait--;
      }
      if(wait == 0) {
          montoast.cancel();
      }
  }    
  
  public void showToast() {
      wait++;
      montoast.setText("loading...");
      montoast.show();
  }
  </code></pre>