Android APK 文件里面有什么

发布于 2024-12-20 00:17:33 字数 219 浏览 2 评论 0原文

来自网络开发背景,所有文件都单独上传到服务器,APK 文件对我来说非常不同!

据我所知,它有点像 zip 或 exe 文件,类似于您在计算机上安装的软件,例如 Eclipse 本身。然后,当安装在设备上时,文件和文件夹将被提取回类似于我在 eclipse 中处理的文件/文件夹结构。在这种情况下,一旦安装了 APK,我就可以再次访问 /res 和 /assets 文件夹?

我走在正确的轨道上吗?

Coming form a web development background where all your files are uploaded to a server individually, the APK file is very different to me!

From what I gather it’s kind of like a zip or exe file similar to software you install on a computer, e.g. Eclipse its self. Then when installed on a device the files and folders are extracted back into something similar to the file/folder structure I was working on in eclipse. And in which case I then again have access somehow to say the /res and /assets folders once the APK is installed?

Am I on the right track?

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

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

发布评论

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

评论(2

野の 2024-12-27 00:17:33

Android应用程序包文件。每个 Android 应用程序都被编译并打包在一个文件中,其中包括应用程序的所有代码(.dex 文件)、资源、资产和清单文件。应用程序包文件可以具有任何名称,但必须使用.apk 扩展名(例如myExampleAppname.apk)。为了方便起见,应用程序包文件通常称为 .apk

Android application package file. Each Android application is compiled and packaged in a single file that includes all of the application's code (.dex files), resources, assets, and manifest file. The application package file can have any name but must use the .apk extension (e.g., myExampleAppname.apk). For convenience, an application package file is often referred to as an .apk.

凉风有信 2024-12-27 00:17:33

APK 的结构:

|-- AndroidManifest.xml
|-- META-INF // Signature Data
|   |-- CERT.RSA
|   |-- CERT.SF
|   `-- MANIFEST.MF
|-- classes.dex //  java byte code file generated after the compilation
|-- res // resource files
|   |-- drawable
|   |   `-- icon.png
|   `-- layout
|       `-- main.xml
`-- resources.arsc

您可以在此处找到更多详细信息:
http://android-anything.diandian.com/post/2011-09 -28/5377936

The structure of an APK:

|-- AndroidManifest.xml
|-- META-INF // Signature Data
|   |-- CERT.RSA
|   |-- CERT.SF
|   `-- MANIFEST.MF
|-- classes.dex //  java byte code file generated after the compilation
|-- res // resource files
|   |-- drawable
|   |   `-- icon.png
|   `-- layout
|       `-- main.xml
`-- resources.arsc

You can find more detailed information here:
http://android-anything.diandian.com/post/2011-09-28/5377936

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