I have an PreferenceActivity where I would like to add Preferences dynamically.
PreferenceActivity
On a long click, these shall do something, however OnPreferenceCli
OnPreferenceCli
Unable to test for you at the moment, but I'm wondering if you could achieve this by using the getView() method on a Preference. Then, once you have that View, use setOnLongClickListener().
getView()
Preference
View
setOnLongClickListener()