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

Android 安装apk时,如何创建目录路径并将文件放入其中?,android,path,directory,apk,installation,Android,Path,Directory,Apk,Installation,安装APK时,如何创建目录路径并将文件放入其中?(在安装apk时;而不是在运行程序时) 安装应用程序时不可能进行更改。它唯一发生的事情是在应用程序运行时执行 要在外部存储器上安装apk <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" ... > 在应用程序启动之前,您无法执行任何类似操作。在apk安装

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

安装应用程序时不可能进行更改。它唯一发生的事情是在应用程序运行时执行

要在外部存储器上安装apk

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

在应用程序启动之前,您无法执行任何类似操作。在apk安装时,您希望将什么类型的文件放入所需目录?我在文件夹中有600个html文件,我希望将文件夹放入外部sdHow?我看到在外部sd上创建文件夹的程序,并将在程序中使用的数据文件放在文件夹中。安装apk后,在运行程序之前,我可以看到文件夹。有一些应用程序在清单文件中设置了一个变量,用于在外部存储上安装,然后此应用程序将其所有文件或文件夹提取到sd卡上,这就是为什么您会看到这一点运行该程序之前,SD卡上应用程序文件夹的类型。
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.