Recent

Author Topic: [LAMW, Solved] jZBarcodeScannerView causes crashes in AppCompat.  (Read 787 times)

Dio Affriza

  • Jr. Member
  • **
  • Posts: 65
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
« Last Edit: June 17, 2019, 10:07:02 am by Dio Affriza »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1421
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #1 on: May 02, 2019, 08:24:51 pm »

OK. I will do some tests!

What about the demo "AppZBarcodeScannerViewDemo1"? some test?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Dio Affriza

  • Jr. Member
  • **
  • Posts: 65
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #2 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.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1121
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #3 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.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1421
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #4 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...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Dio Affriza

  • Jr. Member
  • **
  • Posts: 65
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #5 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.

Dio Affriza

  • Jr. Member
  • **
  • Posts: 65
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #6 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.
« Last Edit: May 03, 2019, 08:49:13 am by Dio Affriza »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1421
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #7 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!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Dio Affriza

  • Jr. Member
  • **
  • Posts: 65
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #8 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... :(
« Last Edit: May 03, 2019, 09:04:48 am by Dio Affriza »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1421
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #9 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!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Dio Affriza

  • Jr. Member
  • **
  • Posts: 65
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #10 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.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1421
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #11 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.....]
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Dio Affriza

  • Jr. Member
  • **
  • Posts: 65
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #12 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.
« Last Edit: May 04, 2019, 04:58:38 am by Dio Affriza »

jmpessoa

  • Hero Member
  • *****
  • Posts: 1421
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #13 on: May 04, 2019, 05:06:57 am »

Good!!!

Now you can try "AppIntentDemoZXing1" !!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Dio Affriza

  • Jr. Member
  • **
  • Posts: 65
Re: [LAMW] jZBarcodeScannerView causes crashes in AppCompat.
« Reply #14 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