Android Question PreferencesDialog Boolean

Mahares

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