09-19-2008 05:57 AM
I ve a problem where I ve to convert the ESN to Bar Code and display the bar code in the screen. Can Anybody give me a light about how to go for it. Im not using any SDK for bar code now.
09-19-2008 12:30 PM
09-19-2008 01:10 PM
Can you add Fonts to a BlackBerry. Not sure, just done a quick search and didn't find anything, this Thread suggests not.
So you might be stuck with having to draw them yourself?
I guess one way would be to make a little png for each letter (may be only need the numbers since you only want the ESN), and then just draw them adjacent to each other.
However I'm guessing you want to this, and then scan the result from the screen using a barcode reader? If so, be careful what scanner you use, most that I have tried will not work off a screen - I believe they need their laser reflected and it doesn't work too well off an LCD.
09-19-2008 01:27 PM
Right, this is how true type fonts have been implemented before. It's not the greatest way of rendering as it fixes your font size, but w/o access to something like FreeType it's about as good as one can hope for.
In any event, depending on the format it shouldn't be too hard to create a barcode library from scratch. I doubt the OP needs anything like QR codes to encode something as simple as an ESN or IMEI.