First of all create a dialog that briefly explains the situation and that suggests to install the free ZXing scanner app from Google Play. Add a Cancel
and an Install
button. I'm not going to explain how to do that here. Just take a look at this AlertDialog.Builder tutorial for example.
Upon user confirmation (Install
button click) you just need to start the following intent:
startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse("market://details?id=com.google.zxing.client.android")));
market
protocol Uri
s can be used to open app detail pages from the Google Play market. See this Android documentation page for more information.