安装 apk 时如何创建目录路径并将文件放入其中?

发布于 2024-12-06 02:18:51 字数 55 浏览 1 评论 0原文

在安装 APK 时,如何创建目录路径并将文件放入其中? (安装 apk 时;而不是运行程序时)。

How can I create a directory path and put my files in it, while installing the APK? (While installing apk; not while running the program).

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

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

发布评论

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

评论(1

脱离于你 2024-12-13 02:18:51

安装应用程序时无法进行更改。唯一发生的事情是您在应用程序运行时执行此操作。

要在外部存储上安装 apk,

<manifest xmlns:android="http://schemas.android.com/apk/res/android"    android:installLocation="preferExternal"    ... >

请记住这些,

When your application is installed on the external storage:

1.There is no effect on the application performance so long as the external storage is
mounted on the device. 


2.The .apk file is saved on the external storage, but all private user data, databases,
optimized .dex files, and extracted native code are saved on the internal device
memory. 

3.The unique container in which your application is stored is encrypted with a randomly
generated key that can be decrypted only by the device that originally installed it.
Thus, an application installed on an SD card works for only one device. 


4.The user can move your application to the internal storage through the system
settings.

Warning: When the user enables USB mass storage to share files with a computer or
unmounts the SD card via the system settings, the external storage is unmounted from
the device and all applications running on the external storage are immediately killed.

Its not possible to make changes while you are installing application. its only thing happens is you do it when your application is running.

For install apk on External Storage,

<manifest xmlns:android="http://schemas.android.com/apk/res/android"    android:installLocation="preferExternal"    ... >

and remember these,

When your application is installed on the external storage:

1.There is no effect on the application performance so long as the external storage is
mounted on the device. 


2.The .apk file is saved on the external storage, but all private user data, databases,
optimized .dex files, and extracted native code are saved on the internal device
memory. 

3.The unique container in which your application is stored is encrypted with a randomly
generated key that can be decrypted only by the device that originally installed it.
Thus, an application installed on an SD card works for only one device. 


4.The user can move your application to the internal storage through the system
settings.

Warning: When the user enables USB mass storage to share files with a computer or
unmounts the SD card via the system settings, the external storage is unmounted from
the device and all applications running on the external storage are immediately killed.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文