title: android: onAutoFocus() is not triggering on android 4.0 (Ice cream sandwich) virtual device
body: <p>I am automatically focusing each 3 seconds, and my code works on my hardware device (Galaxy S), but on my AVD (virtual device) the callback, which should be called after the focus has finished, never gets called.
  Someone knows why?</p>
  
  <pre><code>public void onPreviewStart(){
          Log.v(TAG,"onPreviewStart() focusTimer: "+focusTimer);
          if(this.autoFocus == true &amp;&amp; getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_AUTOFOCUS)){
              focusTimer = new Runnable() {
                  public void run() {
                      Log.d(TAG, "focus run..");
                      if(preview != null &amp;&amp; preview.camera != null &amp;&amp; !saving){
                          focusing = true;
  
                          Log.d(TAG, "focusing.."+preview);
                          //  ----&gt; this gets called each 3 seconds
                          preview.camera.autoFocus(new Camera.AutoFocusCallback() {   
  
                              public void onAutoFocus(boolean success, Camera camera) {
                                  // ----&gt; this never gets called on ICS :(
                                  Log.d(TAG, "onAutoFocus()");
                                  focusing = false;
                                  if(shootButtonWasPressed){  // if shooting was scheduled
                                      Log.d(TAG, "shootButtonWasPressed");
                                      shoot();
                                      shootButtonWasPressed = false;
                                  }
                              }
                          });
                      }
                      preview.postDelayed(focusTimer, 3000);
                  }
              };
              Log.v(TAG,"focusTimer run()");
              focusTimer.run();
          }else{
              focusTimer = null;
          }
      }
  </code></pre>