Here is the thread that I read about making a stack of resources from AssetManager in Android.
What does it mean to “creating a stack of resources from AssetManager?” Do I have to use:
Stack stack = new Stack();
stack.push(this.getAssets());
Or something? If anyone can give hints, I appreciate it. If the question is not specific enough, please post in the comments about it, and I’ll improve the question. Thanks in advance.
A Stack is just a collection of Objects, the same as an array, ArrayList, Collection, etc.
The benefit of using a Stack is that you can simply
push(Object o)objects in to the Stack to add them to the collection, andpop()objects off the Stack when you want to get them back. A Stack can grow to any size.You would probably need to do something like this…
AssetManager has an
open()method for reading the assets – you’ll probably need to read each asset into memory (like abyte[]array or an actualObject) and then push each object into the stack.Refer to http://developer.android.com/reference/android/content/res/AssetManager.html for more information