Does Android VM have any command line options?

你离开我真会死。 提交于 2019-12-10 12:10:12

问题


Does Android VM have any command line options? If it has, how can I set them in eclipse?

I'm looking something like this:

http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

but for dalvik.

How can I use the -XX:+UseCompressedStrings parameter?


回答1:


I found the following in this link searching at Google:

The Dalvik VM supports a variety of command-line arguments (use adb shell dalvikvm -help to get a summary), but it's not possible to pass arbitrary arguments through the Android application runtime. It is, however, possible to affect the VM behavior through certain system properties.

But this is only through adb.




回答2:


The answer is no.

The Dalvik does not have any command lines such as the oracle article you mention.

There're thou a few Manifest parameters that you can use to request simple stuff such as larger memory, hardware accelerated, etc.



来源:https://stackoverflow.com/questions/16037234/does-android-vm-have-any-command-line-options

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