I have an app in which i use zxing barcode scanner to scan qr codes. This works only if the user installs barcode scanner app in his mobile. So, can i install that app automatically with the installation of my app? Like installing apk file programmatically or integrating that apk with mine etc. so that user need to again install that app manually.
Yes, I think you can, Put that apk in your internal storage and then using intent You can install it with programatically, First check with Android Package Manager if Barcode Scanner is available in device or not if not then install it,
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(path+"/Bscanner.apk")), "application/vnd.android.package-archive");
startActivity(intent);
But If possible you have to integrate the Zxing library into your android application and use it, So you have to no need to install Bar-code Scanner apk on device..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With