Android Question Weird Error

Descartex

Well-Known Member
Licensed User
Hi!!
I've almost finished an app and, suddenly, it raised some weird errors on my app, such as:
1.- App closes when reaches this line:
B4X:
DateTime.DateFormat="dd/MM/YYYY"
2.- App closes also when reaches this lines:
B4X:
Variables.DataCheck.Put("Data",DateTime.Now)
Variables.DataCheck.Put("Sync",DateTime.Now)
'Being Variables.DataCheck a Map rightly initialized
In both cases it doesn't like the format:
First case, it raises "Unknown character pattern Y"
On second, it doesn't like the Caps of the map key...

I was using this for long time (from the beginning of the project), without problem.
I didn't made any change on my version before it started to fail...

Anyone has experimented any similar???

Best Regards.
 

Descartex

Well-Known Member
Licensed User
But why it worked without any change???
I can't explain it...
 

Descartex

Well-Known Member
Licensed User
And how to explain it works on 4 devices and fails on 3 others? Same code, same Java version, same IDE version... Compiled versions works on my devices and not on others...
 

rraswisak

Active Member
Licensed User
Did you check android language setting for each device ? are they use same choice :rolleyes:
 

Descartex

Well-Known Member
Licensed User
Did you check android language setting for each device ? are they use same choice :rolleyes:
That can be the problem... on those it fails, are configured on Portuguese, mine are Spanish...
 

rraswisak

Active Member
Licensed User
Maybe, previously i'm facing same problem while date compare between server and device date, i thought it was Date & Time setting matter but it doesn't affect, until i know that using different Language setting is the cause (i don't know why), the working one using English (US) while the other English (Canada). So i set all device to English (US) and the issue has gone.
 
Top