Trie tree crashing in Android

落爺英雄遲暮 提交于 2020-02-25 05:18:26

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!