-3

Is is possible to add new values in List Preference in for example pref_data_sync.xml from code in Android app. If yes, how to get the date from this file?

Thanks for all replies.

pawel112
  • 111
  • 1
  • 1
  • 8

1 Answers1

0

No, you cannot modify a xml preferences file. You cannot modify a resource android file by code.

But if you want to append it using code you can do something like this: https://stackoverflow.com/a/5437844/3482000

Community
  • 1
  • 1
Sandro Machado
  • 9,921
  • 4
  • 36
  • 57