mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 19:57:27 -08:00
Issue 945 don't die if Market isn't there
git-svn-id: https://zxing.googlecode.com/svn/trunk@1887 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
e669aab2af
commit
b27dc8eb28
|
@ -215,7 +215,12 @@ public final class IntentIntegrator {
|
|||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
Uri uri = Uri.parse("market://search?q=pname:" + PACKAGE);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
||||
activity.startActivity(intent);
|
||||
try {
|
||||
activity.startActivity(intent);
|
||||
} catch (ActivityNotFoundException anfe) {
|
||||
// Hmm, market is not installed
|
||||
Log.w(TAG, "Android Market is not installed; cannot install Barcode Scanner");
|
||||
}
|
||||
}
|
||||
});
|
||||
downloadDialog.setNegativeButton(stringButtonNo, new DialogInterface.OnClickListener() {
|
||||
|
|
Loading…
Reference in a new issue