Generate QR codes entirely on-device.
Turn a URL, plain text, a vCard, a UPI string, or Wi-Fi credentials into a crisp QR bitmap your app can display, cache, or save to the gallery. Everything runs on the phone. Nothing leaves the device, and it works with no connection at all.
QR bitmaps from any payload, fully offline
- ✓ Encode URLs, plain text, vCard contacts, UPI payment strings, and Wi-Fi credentials
- ✓ Render straight to a bitmap you can show in an ImageView, cache, or save to the gallery
- ✓ 100% on-device, so there's no network round-trip and no payload ever leaves the phone
- ✓ Outputs a crisp QR bitmap, sized automatically up to 512 px
- ✓ Single synchronous call, safe to run off the UI thread for batch generation
- ✓ Works in air-gapped and offline environments with no server dependency
// Encode a UPI payment string into a QR bitmap, fully on-device OpticalCodeHelper codes = new OpticalCodeHelper(this); Bitmap qr = codes.GenerateQRCode("upi://pay?pa=merchant@bank&am=250.00"); imageView.setImageBitmap(qr);
Common scenarios
In-app dynamic QR
Generate a fresh code on every screen render: session tokens, checkout carts, or booking references that change per user and expire fast.
Offline payment QR
Encode UPI or EMV payment strings on the device. A merchant can take payment even with no signal at the counter.
Event passes
Render ticket and badge codes on the device for entry gates. Scanning works instantly, even where venue Wi-Fi is patchy.
Device pairing
Show a pairing code that a second device reads with QR Code Scanning to exchange keys or push configuration.
Share links
Turn a deep link or profile URL into a scannable code. Users point a camera at it to open a page or start an install flow.
Loyalty codes
Issue member and coupon codes as QR bitmaps that redeem at the counter. Pair them with captured docs from Mobile Scanning for full onboarding.
Priced for every team
Included in the SDK licence. Pricing shown in your local currency.
Affordable to all
On-device generation means no per-render server cost. One SDK licence covers every code you create, from a handful a day to millions a month.
Common questions
Explore the rest of the Mobile SDK
One license, every capability — take this and you also get all of these.