How to change text when scanning barcodes with Zxing via intent in Android?
Question
Is it possible to change the prompt text that says "place the barcode inside the viewfinder..." when launching the Barcode scanner (zxing) via intent ?
Intent intent = new Intent("com.google.zxing.client.android.SCAN")
I want to have a prompt in my language, how should I do that?
Solution
Yes, plain and simple:
intent.putExtra("PROMPT_MESSAGE", "Your Text Here");
OTHER TIPS
If it's worth to anyone, here's how you do it with IntentIntegrator if you decided to import ZXings libraries to Android Studio:
integrator.addExtra("PROMPT_MESSAGE", "Your message here");
Developer here. No sorry you can't do that. But yes if all you mean is you want to contribute a new translation, send us the text.
It reads "Positionieren Sie den Barcode innerhalb des Rechtecks" on my Android. So I guess, the text depends on the handhelds locale setting (as ZXing doesn't provide a setting to change the locale locally).
So if you need support for a now unsuported language, I bet you have to get in contact with ZXings dev team.