Lazarus

Programming => Operating Systems => Android => Topic started by: AFFRIZA 亜風実 on May 02, 2019, 11:27:08 am

Title: [LAMW, Solved] jZBarcodeScannerView causes crashes in AppCompat.
Post by: AFFRIZA 亜風実 on May 02, 2019, 11:27:08 am
I'm trying using ZBar component in my compat app. Android keeps saying "Data Sales keep stop", but I remove the ZBar it works again. Is this a bug?

Google Drive source: https://drive.google.com/open?id=1jSrajkpl4czXUowqPeD_XFuipqrzD-Yo (https://drive.google.com/open?id=1jSrajkpl4czXUowqPeD_XFuipqrzD-Yo)
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: jmpessoa on May 02, 2019, 08:24:51 pm

OK. I will do some tests!

What about the demo "AppZBarcodeScannerViewDemo1"? some test?
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: AFFRIZA 亜風実 on May 03, 2019, 07:24:53 am

OK. I will do some tests!

What about the demo "AppZBarcodeScannerViewDemo1"? some test?
It's still not working with the Demo App.
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: DonAlfredo on May 03, 2019, 07:44:54 am
I dunno what Android version you are on, but you have to set permissions for this App to use the camera.
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: jmpessoa on May 03, 2019, 08:15:50 am

Quote
you have to set permissions for this App to use the camera....

Yes, and the "demo" do it!

@Dio Affriza
What device is being used? What Android version? weird...
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: AFFRIZA 亜風実 on May 03, 2019, 08:18:38 am

Quote
you have to set permissions for this App to use the camera....

Yes, and the "demo" do it!

@Dio Affriza
What device is being used? What Android version? weird...
I've already given permission to camera.
My phone is Sony Xperia Z5 Compact, Android 7.0 Nougat.
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: AFFRIZA 亜風実 on May 03, 2019, 08:26:52 am
I don't think my phone is broken or something, because I tried to install a similar app and it just works.

Maybe I'm doing something wrong in my project, or I just missed something?  :D

Edit: I just tried AppCameraDemo, yeah it's success requesting camera permission, but the app will be stopped after that.
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: jmpessoa on May 03, 2019, 08:48:29 am
Quote
Maybe I'm doing something wrong in my project.....

yes, so we need first to make the demo work ....  Here I tested the "demo" using
a galaxy S4 (android 5.0.1)  and galaxy S5 (android 6.0.1) and it is OK!
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: AFFRIZA 亜風実 on May 03, 2019, 08:55:50 am
Quote
Maybe I'm doing something wrong in my project.....

yes, so we need first to make the demo work ....  Here I tested the "demo" using
a galaxy S4 (android 5.0.1)  and galaxy S5 (android 6.0.1) and it is OK!
Unfortunately, all my phones are Sony.
Yeah, I'm now borrowing my friend's Oppo Neo 7, yeah it works. Looks the jCamera doesn't work with Xperia phone or the Android version too high. Oh, no... :(
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: jmpessoa on May 03, 2019, 09:06:40 am

But, LAMW has anothers options.... try "AppIntentDemoZXing1" for bar code....

and "AppCameraDemo"  and "AppCustomCameraDemo1"  to test your camera!
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: AFFRIZA 亜風実 on May 03, 2019, 10:44:24 am

But, LAMW has anothers options.... try "AppIntentDemoZXing1" for bar code....

and "AppCameraDemo"  and "AppCustomCameraDemo1"  to test your camera!

None of them work. I'll try to inspect the jCamera unit, maybe something I can do with these unit.
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: jmpessoa on May 03, 2019, 06:04:15 pm

You can try  "ZXing" [code bar] App from Google Play Store..... just to test your device...

[maybe  a 32/64 bits  CPU question/compatibility.....]
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: AFFRIZA 亜風実 on May 04, 2019, 04:54:24 am

You can try  "ZXing" [code bar] App from Google Play Store..... just to test your device...

[maybe  a 32/64 bits  CPU question/compatibility.....]
ZXing Barcode scanner works fine.
My phone is using Snapdragon 810, I think it's 64 bit.
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: jmpessoa on May 04, 2019, 05:06:57 am

Good!!!

Now you can try "AppIntentDemoZXing1" !!
Title: Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
Post by: AFFRIZA 亜風実 on May 04, 2019, 05:29:00 am

Good!!!

Now you can try "AppIntentDemoZXing1" !!
Wow, good idea... This is a nice alternative without accessing the camera directly. Thank you :D
TinyPortal © 2005-2018