Android Question PreferencesDialog Boolean

Mahares

Well Known Member
Licensed User
How can I set the default value of the boolean field?
B4X:
prefdialog.AddTextItem("First", "First Name")
    prefdialog.AddTextItem("Last",  "Last Name")
    prefdialog.AddDateItem("Date",  "Date")
    prefdialog.AddTimeItem("Time",  "Time")
    prefdialog.AddBooleanItem("Alive","Alive")        '<---------See

B4X:
Dim Data As Map = CreateMap("First": "","Last": "", "Date":DateTime.Now, "Time": Null, "Alive": True)     '<---------Here
 
Top