Ejemplo n.º 1
0
 public string getResult()
 {
     if(bitmap==null)
         bitmap = BitmapFactory.DecodeResource(context.Resources, Resource.Drawable.qr);
     time = Java.Lang.JavaSystem.CurrentTimeMillis();
     results = reader.DecodeBufferedImage(bitmap, "");
     time = Java.Lang.JavaSystem.CurrentTimeMillis() - time;
     if (results != null && results.Length > 0)
         return results[0].BarcodeText;
     return "Barcode not found.";
 }