@Override public void handleResult(Result rawResult) { try { Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification); r.play(); } catch (Exception e) {} int n = Integer.parseInt(rawResult.getText()); showMessageDialog("Contents = " + rawResult.getText() + ", Format = " + rawResult.getBarcodeFormat().toString()); Toast.makeText(getApplicationContext(), "vlaue is "+n, Toast.LENGTH_LONG).show(); }
catch (Exception e) {}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)