Testing my AstralCore library on Android.
B4J:
B4A; Just replace the initialize line with this:
The code works fine in B4J but in B4A it throws the following error:
Why is this?
B4J:
B4X:
Dim TestCore As LocalCore
TestCore.Initialize(SpecialFolder.Documents, "actest", "test")
Dim Months As List
Months.Initialize
Months.AddAll(Array As String("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"))
For i = 0 To Months.Size - 1
TestCore.Put("Months", i, Months.Get(i))
Next
For Each Key As String In TestCore.Keys("Months")
Log ($"[Key: ${Key}][Month: ${TestCore.Get("Months", Key)}]"$)
Next
B4A; Just replace the initialize line with this:
B4X:
TestCore.Initialize(File.DirInternal, "actest", "test")
The code works fine in B4J but in B4A it throws the following error:
java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]
Why is this?