如果要在手機發開時在PK內放置HTML檔案,程式再藉由WEBVIEW讀取的話。並須把所需檔案放在asset資料夾內。
而在設置路徑時的字串如下
file:///android_asset/mobileWeb/index.html
而在設置路徑時的字串如下
file:///android_asset/mobileWeb/index.html
android:installLocation=["auto" | "internalOnly" | "preferExternal"]
官方說明
Value | Description |
---|---|
"internalOnly " |
The application must be installed on the internal device storage only. If this is set, the application will never be installed on the external storage. If the internal storage is full, then the system will not install the application. This is also the default behavior if you do not define android:installLocation . |
"auto " |
The application may be installed on the external storage, but the system will install the application on the internal storage by default. If the internal storage is full, then the system will install it on the external storage. Once installed, the user can move the application to either internal or external storage through the system settings. |
"preferExternal " |
The application prefers to be installed on the external storage (SD card). There is no guarantee that the system will honor this request. The application might be installed on internal storage if the external media is unavailable or full. Once installed, the user can move the application to either internal or external storage through the system settings. |