特里树的Andr​​oid崩溃 [英] Trie tree crashing in Android

查看:212
本文介绍了特里树的Andr​​oid崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实现了在Java特里树和它的工作罚款约8万字的字典,但是当我在我的Andr​​oid应用实现它,它开始强制关闭。我与一个只有几句话的字典测试,它工作得很好这使我相信,字典的大小是导致我的Andr​​oid模拟器的崩溃。有谁知道为什么吗?

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?

推荐答案

Android应用程序有每个应用程序16MB RAM的限制,也许你耗尽内存。当您在普通电脑上做一个测试你不沙箱的心情工作,并没有对可以使用RAM没有严格的限制。

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.

这篇关于特里树的Andr​​oid崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆