zxing

xamarin xzing barcode scanner re-scan

為{幸葍}努か 提交于 2020-12-06 15:53:29
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

xamarin xzing barcode scanner re-scan

懵懂的女人 提交于 2020-12-06 15:51:00
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

xamarin xzing barcode scanner re-scan

核能气质少年 提交于 2020-12-06 15:50:37
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

How to generate EAN13 barcode that can satisfy checksum digit check?

為{幸葍}努か 提交于 2020-11-30 00:07:55
问题 I am using zxing to generate barcodes. I want to store incremental number in it and I want to avoid checksum errors. How can I avoid it? What's the correct approach? 回答1: I wrote generation method using kotlin, may be it will be helpful for some1 fun generateBarcode(): String { var result = "" for (i in 0..11) { result += (0..9).random() } return result+getCheckSum(result) } fun getCheckSum(code:String): String { var odd = 0 var even = 0 for (i in 0..code.length-1) { val index = i+1 if (index

Android barcode, onActivityResult not calling

流过昼夜 提交于 2020-11-25 03:56:48
问题 I am using Zxing barcode scan. Like most of the issues I am facing the same one. That It's not hitting the onActivityResult . I am using this tutorial Layout <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="horizontal" android:padding="2dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|center_vertical" android:text="Smart MSN #" />