使用Java在Android中生成QR代码

有谁知道如何使用Java程序生成QR码? 我需要创建一个应用程序来为Android设备生成给定详细信息的QR代码。 谢谢!

试试ZebraCrossing(ZXing),它看起来不错: http : //code.google.com/p/zxing/

String contents = "Code"; BarCodeFormat barcodeFormat = BarCodeFormat.QR_CODE; int width = 300; int height = 300; MultiFormatWriter barcodeWriter = new MultiFormatWriter(); BitMatrix matrix = barcodeWriter.encode(contents, barcodeFormat, width, height); BufferedImage qrCodeImg = MatrixToImageWriter.toBufferedImage(matrix);