remove unused code

This commit is contained in:
Dominik Schürmann 2013-10-06 01:17:42 +02:00
parent b3d51b8b80
commit 283037acf5

View File

@ -69,53 +69,4 @@ public class QrCodeUtils {
}
}
/**
* Displays QrCode in Dialog
*/
// public static void showQrCode(Activity activity, Bitmap qrCodeBitmap) {
// final Dialog dialog = new Dialog(activity);
// dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
// dialog.setContentView(R.layout.qr_code_dialog);
// final ImageView imageView = (ImageView) dialog.findViewById(R.id.qr_dialog_view);
// imageView.setImageBitmap(qrCodeBitmap);
// dialog.setCanceledOnTouchOutside(true);
// dialog.show();
// imageView.setOnClickListener(new OnClickListener() {
// public void onClick(final View v) {
// dialog.dismiss();
// }
// });
// }
/**
* Starts Scanning of Barcode with Barcode Scanner App, if Barcode Scanner is not installed
* requests install of it, done by using IntentIntegrator from Barcode Scanner
*
* @param activity
*/
// public static void scanQrCode(Activity activity) {
// IntentIntegrator.initiateScan(activity, R.string.no_barcode_scanner_title,
// R.string.no_barcode_scanner, R.string.button_yes, R.string.button_no);
// }
//
// /**
// * Return scanned QR Code as String, must be used in Activities onActivityResult(), done by
// * using IntentIntegrator from Barcode Scanner
// *
// * @param requestCode
// * @param resultCode
// * @param intent
// * @return QR Code content as String
// */
// public static String returnQrCodeOnActivityResult(int requestCode, int resultCode, Intent
// intent) {
// IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode,
// intent);
//
// if (scanResult != null) {
// return scanResult.getContents();
// } else {
// return null;
// }
// }
}