I am scanning the qrcode successfully and displaying the result url into the textview following.
etxt_qrcode.setText(intent.getStringExtra("SCAN_RESULT"));
Now i want to display the scanned image into imageview.I don't know exactly what i want to do.Is zxing return anything related to image to display imageview or tell me the process to display the result scanned image into imageview.please give me a needful help i am struggling from past two days on this.thanks.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
This can be easily achieved by the following: first before start intent set : setBarcodeImageEnabled(true); and after that you will get image path in OnActivityResult like following: String path=intent.getStringExtra("SCAN_RESULT_IMAGE_PATH");
Thanks
There may be no direct way to get the image from the intent extras but there is a workaround that may help, after you get the decoded string you can convert it to image again. here is a code to do so,
There's not a way to do it. The image is not returned. The problem is that the image can be quite large to parcel. But with downsampling and compression, probably not a big deal. I'd entertain a patch if you want to work on it. http://code.google.com/p/zxing