Humm hoping there were barcode fonts or something, I wanted to create a
barcode from a number that you store into the app. I could do the web
service thing I just didn't want it to be an image although the generated
one will be of high quality so will scan fine.

2009/11/14 Mark Murphy <mmur...@commonsware.com>

> Paul Townsend wrote:
> > Hi I just wondering if I wanted to display a barcode on my phone so
> > that a scanner could scan it, ie like the reward cards apps, how would
> > I go about creating the barcode in a view.
>
> Here are two possibilities:
>
> 1. You store on the phone the barcode as an alphanumeric value and a bar
> code type, then generate the image on the phone. That would require a
> bar code imaging JAR, and while those probably exist for Java, I expect
> they may require some massaging to work on Android.
>
> 2. You store on the phone the actual barcode image, obtained from a Web
> service or something. This has the advantage of being a better-traveled
> road. Then, you'd just use an ImageView, or the 2D graphics API, to
> display the image on screen.
>
> The only thing I see potentially being tricky with scenario #2 is
> getting the image size right, taking into account different screen
> densities. And, you have that same problem with scenario #1.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 In Print!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to