Android Question PreferenceActivity And Saving Settings

FabioG

Active Member
Licensed User
Longtime User
Hello to all,

I'm using AHPreferenceActivity Library
and I need to be able to save your settings in real-time

for example, I wish I could call up the sub SaveSetting when I click the CheckBox

B4X:
Tweaks.AddCheckBox("ADJ","Adjust Settings","","",ADJSettings,"")

how can I do?
 

FabioG

Active Member
Licensed User
Longtime User
PreferenceActivity library doesn't support it. I think that AHPreferenceActivity library doesn't support it as well.

Thanks Erel,
is a important function second me to be implemented

I have another problem, I have the following scenario

B4X:
    Dim Device As AHPreferenceCategory
    Device.Initialize("Device Settings")
    Device.AddList("Interface","Interface","",InterfaceVar,"",InterfaceList)
    Device.AddList("Method","Method","",MethodVar,"",MethodList)
    Device.AddCheckBox("Port","Select Port","","",PortVar,"Method")

I need the CheckBox "Port" is active only when I select a particular item from the List "Method"

how can I manage this dependence?
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
Ok Erel thanks

I'll do that

also ask the dev of library if he wants to implement this
 
Upvote 0

Dadeda

Member
Licensed User
Longtime User
I'm using AHPreferenceActivity Library and i need to apply a custom theme, how can i achieve this ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…