I think this one is a long shot... but here goes...
Is there any way to Serialise a Bundle, or to save a bundle to a file or database. I am trying to save the state of a webview for later use. Any help would be much appreciated .
I think this one is a long shot... but here goes...
Is there any way to Serialise a Bundle, or to save a bundle to a file or database. I am trying to save the state of a webview for later use. Any help would be much appreciated .
According to a reply I read from Erel in another thread, you cannot serialize views. Possibly one way you could do it would be to save references to the contents of the webview, but I'm guessing that might not be an option.
Thx Colin, read through it. The specific challenge I have is I need to save the back forward history. It can be extracted, but not reused. It can be saved into a bundle, but I don't know how to save a bundle in B4A. I have however seen people saving bundles in Android, so I assume there is some way yo do it.
Ok, I have setup a little project which puts some history into a webview and then saves its state into a bundle. Here is a screenshot from the debugger:
I assume you would want to copy that mArray into a list and then save it to a list and then restore to a new bundle when needed.
The question is:
1. How do you access the mArray?
2. How do you copy to the mArray of the new bundle?