Mobile Development - Xamarin.Android Black Screen with the simplest implementation

367 views
Skip to first unread message

Leonard Piltz

unread,
Nov 27, 2014, 2:56:31 AM11/27/14
to zx...@googlegroups.com
Hello,

we got a problem with our app and the barcode scanner in Xamarin.
If we use the barcode scanner, the screen will be black and we got this console output:

[Mono] Assembly Ref addref labGate_mobile.Android[0x63735948] -> ZXing.Net.Mobile[0x63a28950]: 2
[Mono] Assembly Ref addref labGate_mobile.Android[0x63735948] -> zxing.monoandroid[0x63a46820]: 2
[Mono] Assembly Ref addref ZXing.Net.Mobile[0x63a28950] -> zxing.monoandroid[0x63a46820]: 3
[Mono] Assembly Ref addref ZXing.Net.Mobile[0x63a28950] -> Xamarin.Android.Support.v4[0x63ab76e0]: 2
[Mono] Assembly Ref addref Xamarin.Android.Support.v4[0x63ab76e0] -> Xamarin.Android.Support.v13[0x63ac2590]: 2
[ResourceType] Bad XML block: header size 18254 or total size 169478669 is larger than data size 882

The App got permissions to use the camera with:

<uses-permission android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.CAMERA" />


And our code snippet:

bu_barcode.Click += scanBarcode;

bu_search_cancel.Click += delegate {
if(bu_search_cancel.Text == Resources.GetString(Resource.String.cancel)){
refreshData("", Filter.All);
et_search.Text = "";
input_manager.HideSoftInputFromWindow(et_search.WindowToken, 0);
bu_search_cancel.Text = Resources.GetString(Resource.String.search);
} else {
et_search.RequestFocus();
input_manager.ShowSoftInput(et_search, ShowFlags.Implicit);
bu_search_cancel.Text = Resources.GetString(Resource.String.cancel);
}
bu_search_cancel.Visibility = ViewStates.Gone;
};


public async void scanBarcode (Object sender, EventArgs e){
var scanner = new ZXing.Mobile.MobileBarcodeScanner (this);
var result = await scanner.Scan ();

Console.WriteLine ("RESULT: " + result.Text);
}

Hope here can somebody help me

Freundliche Grüße / best regards

Sean Owen

unread,
Nov 27, 2014, 5:12:03 AM11/27/14
to zx...@googlegroups.com
This is not a mailing list for Xamarin or zxing.net

Leonard Piltz

unread,
Nov 27, 2014, 5:37:57 AM11/27/14
to zx...@googlegroups.com
Am Donnerstag, 27. November 2014 11:12:03 UTC+1 schrieb Sean Owen:
> This is not a mailing list for Xamarin or zxing.net

What the? Where should I get then support for development??
Reply all
Reply to author
Forward
0 new messages