getting scan result when using zxing?

前端 未结 5 349
心在旅途
心在旅途 2021-01-03 11:51

I am currently using the Zxing library in my app. After scanning the bar code of a book for example, how do I get things like the image, description, etc. from the scan resu

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-03 12:47

    I just want to add that if you want to be able to press back without a RuntimeException surround your if statement with a try catch block. so:

     try{
     /// get scanned code here
     } catch(RuntimeException e) {
     e.getStackTrace();
     {
    

    Hope that helped the inevitable crash you would face without it.

提交回复
热议问题