In B4A if you do this and everything works fine...
The result in the log file is: True
If you do the same in B4I the result is: 1
This is not good because if you add a Switch to the Page you get wrong results...
The Switch returns True or False ... Get/Put return 1 or 0 so you can't do this...
Switch.value=ini.Get("test")
Switch expects True or False, not 1 or 0
B4X:
Dim ini As Map
ini.Initialize
ini.Put("test",True)
Log(ini.Get("test"))
The result in the log file is: True
If you do the same in B4I the result is: 1
This is not good because if you add a Switch to the Page you get wrong results...
B4X:
Sub switch_ValueChanged (Value As Boolean)
Log(switch.Value)
ini.put("test",switch.Value)
Log(ini.Get("test"))
End Sub
The Switch returns True or False ... Get/Put return 1 or 0 so you can't do this...
Switch.value=ini.Get("test")
Switch expects True or False, not 1 or 0