问题
I implemented a Trie tree in Java and it worked fine with a dictionary of about 80,000 words but when I implemented it in my Android app it started to Force Close. I tested it with a dictionary that has only a few words and it worked fine which makes me believe that the size of the dictionary is causing the crash in my Android simulator. Does anyone know why?
回答1:
Android applications have a limit of 16MB RAM per application, probably you run out of memory. When you do a test on an ordinary computer you do not work in sandbox mood and there is no strict limit on the RAM you can use.
来源:https://stackoverflow.com/questions/9247324/trie-tree-crashing-in-android