Skip to content

Commit

Permalink
Merge pull request #21 from vileda/master
Browse files Browse the repository at this point in the history
fixed barcode scanner crash bug
  • Loading branch information
derveloper committed Oct 22, 2011
2 parents 6eff03c + c609059 commit ad35759
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/org/fNordeingang/fNordeingangActivity.java
Expand Up @@ -74,12 +74,12 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
Log.w("requestCode: ", Integer.toString(requestCode));
Log.w("resultCode: ", Integer.toString(resultCode));
if(requestCode == IntentIntegrator.REQUEST_CODE) {
IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
Log.w("code: ", result.getContents());
Log.w("format: ", result.getFormat());
try {
IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
Log.w("code: ", result.getContents());
Log.w("format: ", result.getFormat());
articleDialog((new ServiceClient()).getArticleInfo(result.getContents()).getJSONObject("eanArticle").getString("detailname"));
} catch(JSONException e) {
} catch(Throwable e) {
e.printStackTrace();
}
}
Expand Down

0 comments on commit ad35759

Please sign in to comment.