Good day, friends.
I have a PreferenceActivity, it is filled from XML file.
When we press one item, we should launch new activity. How to do it? What should I write in XML-file or in the Java-class?
Good day, friends. I have a PreferenceActivity, it is filled from XML file. When
Share
After you add preferences using
find your preference that you want to set onClick using
and define it by casting like
Then you can easily set its onClick using
You can start your new Activity (using an Intent) inside that listener.