开发者

How can I tell reliably if my Android App is running on a device with JIT?

Is there a way to test, from within an android app, if the device it's running on is actually using the Froyo JIT?

I ask because I know tha开发者_如何学运维t 2.2 has a JIT, but we've already had a few test builds that seem to lack the JIT. So it's not a case where you can just test for the api version and be assured you've got the JIT.


Looks like you can use reflection to see if java.lang.Compiler exists and then to try calling some methods on it to see if they work or return nulls.

http://developer.android.com/reference/java/lang/Compiler.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜