Now I read somewhere that using .release on a video (myVid.release) will immediately release that video from memory. Does the .release work with views?
I know closing a view will release it from memory but when the view reopens, it was causing issues that I really didn't really want to deal with.
2 Answers
Accepted Answer
There is no .release() method for Views or Windows.
My initial approach with Titanium was to try to reuse complex views. I would tell you from experience that you should not do that. I had horrible stability issues on android when I tried to do that.
Just recreate the view/window each time you need to open it.
Hello, You can use remove() function to remove view for window, this should always be done before opening new window. And secondly if you want to reuse same view of window then you can use view.show() and view.hide function of view insted of using close.
Your Answer
Think you can help? Login to answer this question!