I\'m developing a language dictionary app. I save the favourite word into Preference. The Favourite content in the XML file looks like the following:
I think the problem comes from this line
mWordFavourite = new ArrayList<String>(Arrays.asList(strFavourite.split(",")));
where you create a new ArrayList <string>
object every time but you should append to it?
& get the last one otherwise you should put it in one variable
If you are checking if its size() >0
But each time you create a new object not appending to it
Maybe I am wrong!
http://developer.android.com/reference/android/webkit/WebView.html
please refer above link for more infomations