Communication beetween Android and JQueryMobile

Communication beetween Android and JQueryMobile

Hi,

I´m using Phonegap and JQueryMobile for develop an Android App.

My Problem is now: how can i get access to a Java Script variable from Android?

For example:

I have this jQuery Mobile "busy spinner":

  1. $.mobile.showPageLoadingMsg("a", "I am at number " +i);
and this android pseudocode

  1. while(i<100)
  2. {
  3. send i to PageLoadingMsg;
  4. sleep(1000);
  5. i++;
  6. }
I hope it ´s understandable ;)

greetings from germany