@JavascriptInterface
 public synchronized String getData() {
   if (mode == MODE_UNKNOWN) {
     return "initializing:";
   }
   if (mode == MODE_BLM) {
     return setterGetter.getValue();
   }
   if (lux >= 0.0) {
     return "lux: " + Float.toString(lux);
   }
   return "nolux:";
 }
 @JavascriptInterface
 public synchronized void setParameters(String par) {
   if (mode == MODE_BLM) {
     setterGetter.setParameters(par);
   }
 }