简体   繁体   English

是否在x86和ARM Android设备上运行了经过签名的Android APK文件?

[英]Is a signed Android APK-File running on x86- and ARM-Android devices?

Android APK-Files are not binaries but byte-code-files. Android APK文件不是二进制文件,而是字节码文件。 So is it possible to install the same APK-File on both - on x86-Android-Devices and ARM-Android-Devices? 那么是否可以在x86-Android-Devices和ARM-Android-Devices上同时安装相同的APK文件? There are some x86-Netbooks with Android installed planned and I wonder if it is possible to run the APK-Files on both kinds of devices? 有一些已计划安装Android的x86上网本,我想知道是否有可能在两种设备上运行APK文件?

Best regards, 最好的祝福,

Tom 汤姆

是的,这些设备将运行dalvik vm的x86版本,因此您的应用程序将在应用程序本身方面运行良好,如果需要GPS或其他基于手机的类,则可能无法运行。

Actually, Android APK files are really ZIP archives. 实际上,Android APK文件实际上是ZIP存档。 They contain the XML, art files, Java and binary (native) code. 它们包含XML,艺术品文件,Java和二进制(本机)代码。 If your app is written entirely in Java then it will work on whatever CPU Android is running on. 如果您的应用程序完全使用Java编写,那么它将在运行Android的任何CPU上运行。 If you have cpu-specific binary code (eg generated with the NDK), then it will only run on the target cpu. 如果您具有特定于CPU的二进制代码(例如,使用NDK生成的二进制代码),则它将仅在目标CPU上运行。 LB

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM