I have preferences.xml which is used in my extension of PreferencesActivity.
I have another preference in the xml that I would like to use to clear the cache of a webview.
It has a key though I can't work out how to fire webview.clearCache by pressing the entry in my preferences...
In a nutshell, I'd like to run the webview.clearCache() command from a my preferences screen like one can from an options menu item.
OK so I think I have to use something like setOnPreferenceClickListener with onPreferenceClick, but how?
Solved by adding:
Thanks for your own answer :) It was usefull for me.
In addition: below is the code when you want to delete a directory/folder on the sd-card from your xml-style preferences: