Android Question dgBarCode 0.12

dagodom

Member
Licensed User
Longtime 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
Longtime 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
 
Upvote 0

dagodom

Member
Licensed User
Longtime 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
 
Upvote 0

udg

Expert
Licensed User
Longtime 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?
 
Upvote 0

dagodom

Member
Licensed User
Longtime 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
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Upvote 0

udg

Expert
Licensed User
Longtime 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.
 
Upvote 0

dagodom

Member
Licensed User
Longtime 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.
 
Upvote 0

dagodom

Member
Licensed User
Longtime 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
Upvote 0
Top