android - How can I programmatically disable a single setting? -


i have created custom settings app using settings activity. in oncreate class, include following code:

settingsmanager.getinstance(this)         .setlocalheaderresource(r.xml.local_settings_headers)         .setcommonheaderresource(0)         .setsettingsvaluehandler(new localsettingshandler(this))         .loadsettings(); 

and in onresume() have this

settingsmanager.getinstance(this).updatesettings(); 

settings works perfectly, have no issues behavior. however, able deactivate or hide single setting (from among list of many settings choices) based on value program reads during oncreate() or onresume() --- let's say, os of phone, or similar --- render setting misleading or unnecessary.

how can programmatically deactivate single setting within code?


Comments