How to force using zxing lib with only my application?

前端 未结 4 1083
抹茶落季
抹茶落季 2020-12-19 20:20

Ok lets say there are 3 different applications which are using zxing lib on the phone. Whenever I want to open zxing with my own application android asks me whether to compl

4条回答
  •  感情败类
    2020-12-19 20:34

    Just include this,this has done the needed for me..

    Intent intent = new Intent("com.google.zxing.client.android.SCAN");
                intent.setPackage(getPackageName());
                intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
                startActivityForResult(intent, 0);
    

提交回复
热议问题