Integrate ZXing QR code scanner without installing BarCode Scanner

后端 未结 7 1521
忘掉有多难
忘掉有多难 2020-12-02 13:39

I am trying to Integrate ZXing QR Code into my android app without installing BarCode Scanner app, I have followed the steps as:

1) Firstly I have downloaded ZXing.z

7条回答
  •  天涯浪人
    2020-12-02 14:03

    Finally I got the answer,

    As of ADT 14,the resource fields(such as R.id.decode) are no longer constants when defined in library projects

    So in the ZXing library->android->com.google.zxing.client.android.CaptureActivityHandler.java and DecodeHandler.java

    Replace both of these classes switch case statements with if-else,and then import this ZXing library into your project..

    Rest of the coding of my own project is same...just the problem with the library classes as these are not updated as according to ADT 14..

    Kanika

提交回复
热议问题