ZXING代码扫描程序是否还返回扫描代码的图片?

时间:2011-10-25 14:30:29

标签: android zxing

如果除了格式和数据之外,ZXING library for android的任何想法都可以返回它刚扫描的代码的图像吗?

感谢!

Intent intent = new Intent("com.google.zxing.client.android.SCAN");
startActivityForResult(intent, 0);

***

    public void onActivityResult(int requestCode, int resultCode, Intent intent) {
           if (requestCode == 0) {
              if (resultCode == RESULT_OK) {
                 String contents = intent.getStringExtra("SCAN_RESULT");
                 String format = intent.getStringExtra("SCAN_RESULT_FORMAT");
                 ///NEED TO GET BITMAP OF THE SCANNED CODE
                 ...
              } else if (resultCode == RESULT_CANCELED) {
                 ...
              }
           }
        }

1 个答案:

答案 0 :(得分:2)

不,它没有归还。查看source code以查看其构建的响应。