title: detector.isOperational() always false on android
body: <p>I'm using the <strong>new google plays service</strong>: <em>Barcode detector</em>, for this porposue I'm following this tutorial : <a href="https://search-codelabs.appspot.com/codelabs/bar-codes" rel="noreferrer">https://search-codelabs.appspot.com/codelabs/bar-codes</a></p>
  
  <p>But when I run the application on my real device(Asus Nexus 7), the text view of the app always is showing me "Couldn't set up the detector" and i don't know how to make it work >&lt; ...</p>
  
  <p>Here some code for fast debugging:</p>
  
  <pre><code>public class DecoderBar extends Activity implements View.OnClickListener{
  
  private TextView  txt;
  private ImageView img;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.layout_decoder);
  
      Button b = (Button) findViewById(R.id.button);
      txt = (TextView) findViewById(R.id.txtContent);
      img = (ImageView) findViewById(R.id.imgview);
  
      b.setOnClickListener(this);
  }
  
  // [...]
  
  @Override
  public void onClick(View v) {
  
      Bitmap myBitmap = BitmapFactory.decodeResource(getApplicationContext().getResources(),R.drawable.popi);
      img.setImageBitmap(myBitmap);
  
      BarcodeDetector detector = new BarcodeDetector.Builder(getApplicationContext())
              .setBarcodeFormats(Barcode.DATA_MATRIX | Barcode.QR_CODE)
              .build();
  
      if(!detector.isOperational()){
          // Always show this message, so, never is operational!
          txt.setText("Could not set up the detector!");
          return;
      }
  
      Frame frame = new Frame.Builder().setBitmap(myBitmap).build();
      SparseArray&lt;Barcode&gt; barcodes = detector.detect(frame);
  
      Barcode thisCode = barcodes.valueAt(0);
      txt.setText(thisCode.rawValue);
  }
  }
  </code></pre>