Android Question dgBarCode 0.12

dagodom

Member
Licensed User
Hello
I get this error by running the example on android 5.0,
B4X:
java.lang.NumberFormatException: Invalid double: "[EAN13 = 1, EAN8 = 2, IsInitialized = false
is there a minimum version of android for this library?
Thanks
 

udg

Expert
Licensed User
Hi,
I had a quick look into the lib's code and I found nothing specific to < 5.0 version.
Is the reported error generated by the demo code? if not, can you show the code generating the error? Thank you
 

dagodom

Member
Licensed User
Hello
I tried the program attached to the library.
I had used the library with an Android 8 device and everything worked perfectly, brought to Android 5 by this error.
The device with android 5 is an asus zenfone 2

Thanks
 

udg

Expert
Licensed User
The error seems to indicate that a string was parsed instead of an expected double.
BTW, there's no reference to the double type in lib's code; everything is based on the float type.
The lib was originally tested on a 4.2 Android, so it is surprising that it works for version 8 but noy for version 5 of it.

ps: are you from Bologna?
 

dagodom

Member
Licensed User
Yes, i am from bologna, you know bologna ?
For the error this evening i try with a tablet.
I'm sure I didn't change the code, but check for security
 

Star-Dust

Expert
Licensed User

udg

Expert
Licensed User
Yes, i am from bologna, you know bologna ?
Absolutely. I'm Italian and my family lives in Bologna. If you like, you can start a thread in the Italian section or PM privately in order to speak Italian and try to understand where the code fails. Then, eventually, we could report here about our findings so to be useful to others.
 

dagodom

Member
Licensed User
Okay, we'll continue in the Italian section.
Developing for android is not my job, tonight I hope to try and send you some more information
In the meantime, thanks.
 

dagodom

Member
Licensed User
ok, I have to apologize

I re-downloaded the libraries and recompiled everything and now works on all the devices I tested it on (from android 4.4.2 to android 8)
I don't know what happened but I could think of it right away!
What to say, as they say in Italian "I beat up a s...."

Thanks Umberto for the support!

CIAO!!!!
 
  • Like
Reactions: udg
Top