如何找到某些手机的内存大小?

发布于 2024-11-29 15:37:54 字数 185 浏览 0 评论 0原文

我将创建一个消耗内存的 j2me 移动应用程序。问题是我不知道普通手机的平均内存大小以及我可以使用多少内存?

你知道如何找到某些特定手机型号的内存大小(请注意,我手中没有所有这些型号)?或者您对我应该搜索的关键字有什么想法吗?

例如,搜索Sony Ericsson T700 Ram size没有得到任何结果。

I'm going to create a memory consuming j2me mobile application. The problem is that I don't know average ram size of usual mobile phones and how much memory I can use?

Do you know how can I find ram size of some specific phone model (note that I don't have all of these models in my hand)? Or do you have any idea about keywords I should search for?

As an example searching for Sony Ericsson T700 Ram size didn't result to anything.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

我不会写诗 2024-12-06 15:37:54

使用 Runtime 类。使用此代码:

Runtime runtime = Runtime.getRuntime() ;
System.out.println("freeMemory:> "+runtime.freeMemory());
System.out.println("totalMemory:> "+runtime.totalMemory());
System.out.println("usedMemory:> "+(runtime.totalMemory() - runtime.freeMemory()));

Use Runtime class. Use this code:

Runtime runtime = Runtime.getRuntime() ;
System.out.println("freeMemory:> "+runtime.freeMemory());
System.out.println("totalMemory:> "+runtime.totalMemory());
System.out.println("usedMemory:> "+(runtime.totalMemory() - runtime.freeMemory()));
流星番茄 2024-12-06 15:37:54

JBenchmark 是查找有关设备功能的信息的绝佳场所。只需搜索设备并在 JVM 下查找“总内存”即可。或者注册一个帐户并下载完整数据库的 JBenchmark_data_export.xml 文件。

JBenchmark is an excellent place to find information about device capabilities. Just search for the device and look under JVM for "total memory". Or register an account and download the JBenchmark_data_export.xml file for the complete database.

天赋异禀 2024-12-06 15:37:54

那么,您想知道什么设备有多少总内存?

不知道有没有在线服务可以查询。
然而,如果你愿意做一些处理,足够的软件(J2MEPolish的创建者)有开源设备包含总内存信息的数据库。

只需访问 http://devices.enough.de/interactivedb/searchdevices.faces下载当前稳定的 devices.xml 文件。您会发现 3 个文件。查看 devices.xml,您会发现类似以下内容:

<capability name="totalmemory" value="3550208" />

还有名为 WURFL。但是,我没有时间检查他们的数据库是否包含 TotalMemory 信息。

希望有帮助。

So, you want to know what device have how much total memory?

I don't know if there's online service that allow you to query it.
However, if you are willing to do some processing, Enough Software (creator of J2MEPolish) have open source device database that contains total memory information.

Just go to http://devices.enough.de/interactivedb/searchdevices.faces and download current stable devices.xml file. You'll find 3 files. Look at devices.xml and you'll find something like this:

<capability name="totalmemory" value="3550208" />

There's also devices database called WURFL. However, I don't have time to check if their database contain TotalMemory information.

Hope that helped.

蓝天白云 2024-12-06 15:37:54

感谢另一个论坛的朋友(http://www.coderanch.com/t/549476/JME/Mobile/much-ram)我有一些这方面的信息。

此外,一些公司提供了更详细的型号规格供开发人员使用: nokia , < a href="http://developer.sonyericsson.com/wp/" rel="nofollow">索尼爱立信等。

Thanks to a friend in another forum (http://www.coderanch.com/t/549476/JME/Mobile/much-ram) I have some information on this.

Furthermore some companies provide more detailed specifications on their models which can be used by developers: nokia , SonyEricsson etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文