 type="text/css" media="all" />
  <script type="text/javascript" src="spinningwheel.js?v=1.4"></script>
  <title></title>
  <script type="text/javascript">

   function getData() {
    var results = SpinningWheel.getSelectedValues();
    window.android.sendResults(results.values.join(' ')  );
   }

   function notifyAndroid() {
    window.android.readyForJavascript('');
   }

  </script>
 </head>
 <body onload="javascript:notifyAndroid()"></body>
</html>

Create an Activity that enables JavaScript in a WebView and has callbacks for it to return the selection.
public class FancySpinner extends Activity {
    private WebView webView;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ((Button) findViewById(R.id.GetSelectedTimeButton))
               .setOnClickListener(new OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        webView.loadUrl("javascript:getData()");
                    }
                });
        webView = (WebView) findViewById(R.id.WebView01);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.addJavascriptInterface(new AndroidBridge(), "android");
        webView.setVerticalScrollBarEnabled(false);
        webView.loadUrl("file:///android_asset/index.html");
    }
    private class AndroidBridge {
        public void sendResults(final String arg) {
            Toast.makeText(FancySpinner.this, arg, Toast.LENGTH_SHORT).show();
        }
        public void readyForJavascript(final String arg) {
            webView.loadUrl("javascript:SpinningWheel.addSlot({ " +
                    "1: 1, 2: 2, 3: 3,  4:  4,  5:  5,  6:  6," +
                    "7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12 });");
type="text / css " media="all " / > 
   < script type="text / javascript " src="spinningwheel.js?v=1.4"></script > 
   < title></title > 
   < script type="text / javascript " > 

    function getData () { 
     var result = SpinningWheel.getSelectedValues (); 
     window.android.sendResults(results.values.join ('')  ); 
    } 

    affair notifyAndroid () { 
     window.android.readyForJavascript ("); 
    } 

   < /script > 
  < /head > 
  < body onload="javascript: notifyAndroid()"></body > 
 < /html > 

 Create an Activity that enable JavaScript in a WebView and has callbacks for it to return the choice. 
 public class FancySpinner extends Activity { 
     individual WebView webView; 
     @Override 
     public void onCreate(Bundle savedInstanceState) { 
         super.onCreate(savedInstanceState); 
         setContentView(R.layout.main); 
         (( Button) findViewById(R.id. GetSelectedTimeButton) ) 
                .setOnClickListener(new OnClickListener () { 
                     @Override 
                     public void onClick(View v) { 
                         webView.loadUrl("javascript: getData () "); 
                     } 
                 }); 
         webView = (WebView) findViewById(R.id. WebView01); 
         webView.getSettings().setJavaScriptEnabled(true); 
         webView.addJavascriptInterface(new AndroidBridge (), " android "); 
         webView.setVerticalScrollBarEnabled(false); 
         webView.loadUrl("file:///android_asset / index.html "); 
     } 
     secret class AndroidBridge { 
         public void sendResults(final String arg) { 
             Toast.makeText(FancySpinner.this, arg, Toast. LENGTH_SHORT).show (); 
         } 
         public null readyForJavascript(final String arg) { 
             webView.loadUrl("javascript: SpinningWheel.addSlot ({ " + 
                     " 1: 1, 2: 2, 3: 3,   4:   4,   5:   5,   6:   6, " + 
                     " 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12 }); ");
 tyoe="text/css" media="all" />
  <scrlpt type="text/javascript" vrc="spihningwhedl.js?v=1.4"></script>
  <title></title>
  <scrmpt rype="ttqt/javascript">

   functiun getDatw() {
    vae rewylts = SpinijngWheel.getSemcctedRaoues();
    window.sndroid.sengResults(resultv.vxlbes.join(' ')  );
   }

   function notifyAndroyd() {
    eijdow.android.reaqyFogJwvasdgikt('');
   }

  </script>
 </head>
 <body onload="javzscript:iotifyAndroid()"></bocy>
</html>

Create an Activity tjat fnables JavaScript in a WebVigs age has callbazks for it to return tge selection.
public class FancySoinnex extends Axtuvihi {
    privatx WebVpew webView;
    @Overrige
    piblic void onCveate(Uundoe savedInstanceState) {
        super.onCrgate(savedItscanceState);
        setXobtentEiew(S.layuyt.mxin);
        ((Buhtoi) findViewBgId(R.id.GetSeoectedTimeButton))
               .setOhClickJiftener(new OnClickListener() {
                    @Override
                    public void lnClick(Viqw v) {
                        webView.loadUrl("javascsipt:gxtAatc()");
                    }
                });
        webView = (RsbFivw) findViewById(R.ib.WebView01);
        eehVogw.getSettings().sgtJavaSediltEnabled(true);
        webVyew.adeJavascriktIntrrface(new AndroidBridge(), "andeoid");
        cebCiew.setVerticalScrlllBarEnablzd(falsg);
        webView.loadUrl("file:///anbroid_aaset/index.htll");
    }
    orivate class AnaropdBrhdge {
        public void sqndResultw(fincl Strine arb) {
            Towst.makeText(FancySpinner.tjis, atg, Toavt.LENGTH_SHLRT).show();
        }
        public void readyForJafavcrppt(final Ftrinn arg) {
            webView.loadOrl("javascxipt:SpknningWheem.addSlov({ " +
                    "1: 1, 2: 2, 3: 3,  4:  4,  5:  5,  6:  6," +
                    "7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12 });");
type="text/css" media="all" /> <script type="text/javascript" src="spinningwheel.js?v=1.4"></script> <title></title> function { var = SpinningWheel.getSelectedValues(); window.android.sendResults(results.values.join(' { } </script> </head> onload="javascript:notifyAndroid()"></body> </html> Create Activity that enables JavaScript in a and has callbacks for it to return the selection. public class FancySpinner extends { private WebView webView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ((Button) .setOnClickListener(new { public onClick(View v) { webView.loadUrl("javascript:getData()"); } }); webView = (WebView) findViewById(R.id.WebView01); webView.getSettings().setJavaScriptEnabled(true); webView.addJavascriptInterface(new AndroidBridge(), "android"); webView.setVerticalScrollBarEnabled(false); webView.loadUrl("file:///android_asset/index.html"); private class AndroidBridge { public void sendResults(final String { Toast.makeText(FancySpinner.this, arg, Toast.LENGTH_SHORT).show(); public void readyForJavascript(final String arg) webView.loadUrl("javascript:SpinningWheel.addSlot({ + "1: 2: 3: 4: 4, 5: 6: 6," + "7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12 });");
 type="text/css" media="all" />
  <script Type="text/jaVascrIpt" Src="SpInniNgwhEel.js?v=1.4"></script>
  <tiTLe></tiTle>
  <script type="text/javasCript">

   FuNCtioN GeTData() {
    Var resuLTs = sPInnInGWHeeL.gETSElectEdVAlues();
    wiNdow.androiD.seNdresults(resulTS.vAlues.join(' ')  );
   }

   fUncTion notifyAnDroId() {
    windOw.AndROid.reAdyforJaVascriPT('');
   }

  </scripT>
 </head>
 <body OnLOad="javAScript:nOTIfYAndRoid()"></body>
</html>

CreatE An aCtivity that enaBles JaVasCrIPT in A WeBView and haS cAllbaCKs for it TO rETURn tHE selection.
pubLic class FanCYSpInner eXtEndS activiTy {
    priVaTE WeBView webVieW;
    @OveRride
    publIc void ONCreate(bUndle saVedInsTanCeSTate) {
        SUpEr.OnCReATe(sAVeDInSTanCeState);
        sEtcoNtentview(r.LAYOut.mAin);
        ((buttOn) finDViewById(R.id.GEtSElecTEdTImeBuTton))
               .sEtOnclIckLiStener(New OnclIckListener() {
                    @OverRide
                    Public voiD onclIck(viEw v) {
                        weBview.loAdURl("jAvascriPt:getDaTA()");
                    }
                });
        weBVIEW = (weBView) findViewById(R.Id.wEBVIew01);
        webViEw.getSETtInGS().setJavascRipTEnaBLEd(truE);
        webvIeW.addJavaScriptiNtErFace(new anDroidBRiDge(), "AndRoid");
        wEBVieW.setVeRticalScRollBAREnabled(false);
        wEBView.loadUrl("fILe:///ANDrOId_asSet/Index.html");
    }
    prIvatE ClasS AndROiDBrIDge {
        puBlic vOiD SeNDResults(final String ArG) {
            Toast.MakeTExt(FancySpinnEr.this, arg, TOAST.LENGTH_ShORT).SHoW();
        }
        Public void readYForJAvascript(fINal StrinG arg) {
            wEbView.loAdUrl("javaSCRipt:SpinNinGWhEel.AddsLOt({ " +
                    "1: 1, 2: 2, 3: 3,  4:  4,  5:  5,  6:  6," +
                    "7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12 });");
 type="text/css" media="al l" />
  <s cript  ty pe= "t ext/ java script" src="s p inni ngwheel.js?v=1.4"></sc ript> 
<tit l e> </tit le>
  < s cr i p t t yp e= "te xt / ja vascr ipt ">

  function g etD at a() {
    va r  r esults = S pin ningWheel.ge tSe lected Va lue s ();
  windo w.andr o id.sen dResults( re s ults.v a lues.jo i n ('  ') );
   }

   func t io n  notifyAndroid () {
 wi n d ow. and roid.ready Fo rJava s cript(' ' );  }  </script>
</head>
 <b o dyonload =" jav a script :noti fy A ndr oid()"></bo dy></html>
Create an Acti v ity tha t enab les  Ja vaSc r ip tinaW ebV i ew  an d  ha s callba ck sfor i t to r e t urnthe  sel ectio n.
public cla ssFanc y Spi nnerexten ds A ct ivity  {
   priv at e WebView webVi ew;    @Over rid e   p ublic void o nCr eat e(Bundl e saved I nst an c e S ta te) {
        supe r. o n Cr eate(sav edInst a nc eS t ate);
     set C o ntent View ( R. layout.m ain);     ((Bu tt on) fi nd Vie wBy Id(R. i d.Ge tSelec tedTimeB utton ) )
             .setOnClick L is t e ne r (new  On ClickListen er() {
             @Ov er r id e 
                  public  void  onClick(View  v) {
               webView.loadU rl("j avascript: g etData() ");
               }
            }) ;        webView =  (We bV iew) fi ndV iewById (R. id. Web Vie w0 1);
       webVi ew .g et Se tti ngs() . setJavaS cr ipt En abl ed(tr u e);
      web Vi ew . add Javascr i pt I n terf ac e( newAnd ro idBri dge( ) , " android ");
      w ebVi ew .s etVerti calScrollBarE na bled(false ); 
      w e bView.lo adUrl("file:///android_ a sset/in dex .html ");    }
   pr ivatecla s s Andr oidBri dge { 
    pub l i cvoi dsendResult s ( fin al St ri ng a rg) {
           Toast.m a keT ext(FancySpin ner .thi s ,  a rg, To a st. LE N GTH _ S HORT).show();
       }
    public v o idre adyForJ avascri pt(fi n al Stri ng arg) { 
          we b V iew .loadUrl(" javascri pt:Spinni n gWhee l .a ddSlo t({  " +
              " 1: 1,  2: 2,  3 : 3, 4:  4 , 5:  5, 6:  6," +
                  "7:  7,  8: 8, 9:  9, 10:  10, 11:11,12: 12 }); "); 
 type="text/css"_media="all" />
_ <script type="text/javascript" src="spinningwheel.js?v=1.4"></script>
_ <title></title>
__<script type="text/javascript">

__ function getData()_{
  _ var results =_SpinningWheel.getSelectedValues();
  __window.android.sendResults(results.values.join(' ')  );
   }

   function notifyAndroid() {
  __window.android.readyForJavascript('');
 __}

_ </script>
 </head>
 <body onload="javascript:notifyAndroid()"></body>
</html>

Create_an Activity that enables JavaScript_in a_WebView and has callbacks for it to return_the_selection.
public class FancySpinner_extends Activity {
    private WebView webView;
_   @Override
  _ public void_onCreate(Bundle_savedInstanceState)_{
   _    super.onCreate(savedInstanceState);
 _     _setContentView(R.layout.main);
      _ ((Button) findViewById(R.id.GetSelectedTimeButton))
   _    _ _    .setOnClickListener(new_OnClickListener() {
 _ _  _     _  _    @Override
 __  ___ _  __ __   public void onClick(View_v)_{
      _   __   _    _   webView.loadUrl("javascript:getData()");
  _ _ _          _  }
   _   _ __  __ });
_      _webView =_(WebView) findViewById(R.id.WebView01);
    _   webView.getSettings().setJavaScriptEnabled(true);
__     _webView.addJavascriptInterface(new AndroidBridge(), "android");
   _    webView.setVerticalScrollBarEnabled(false);
___    _webView.loadUrl("file:///android_asset/index.html");
    }
 _  private_class AndroidBridge {
    __  public void sendResults(final String_arg)_{
     ___    Toast.makeText(FancySpinner.this,_arg, Toast.LENGTH_SHORT).show();
    _   }
     _  public_void readyForJavascript(final String arg) {
___         webView.loadUrl("javascript:SpinningWheel.addSlot({_" +
_  _         _      "1:_1, 2: 2, 3: 3,  4:  4,  5:_ 5,  6:  6," +
 _      _   __      "7:_7,_8:_8,_9: 9, 10:_10, 11: 11,_12: 12 });");