androidはプログラムをap 2 sdに設定します.
4667 ワード
android 2.2から「プログラム管理」を開き、ap 2 sdを行うことができます.しかし、あるプログラムのこのオプションは灰色で、選択できないものもあります.
SDK文書を調べて、原因を見つけました.プログラムにコードを追加すると、あなたのプログラムが勝手に移動できます.このコードです.
アプリInstall Location
QuickviewYou can allow your appication to install on the device's external storge Some types of appications shoud not allow installation on the external storage Installing on the external storge is idea for large appliations that are not tightly integrated with the system(most commonly、games) In this documentBackward Comptibility Application s That Shotoud NOT Install on External Strage Application s That Shoruld Install on External Strage See also Beginning with API Level 8,you can allow your appration to be installed on the external storage(for example,the device's SD card).This is an optional feature you can declare for your appicationyour appection will be installed on the internal storage only and it cannot be moved to the external storage.
To allow the system to install your appration on the external storge、modify your maifile to include theandroid:installLocationatribute in the
If you declare“
When your appration is installed on the external storage:The re isのeffect on the appration performance so long as the external storage is mounted on the device The The unique container in which your aplication is stored is encryped with a randoumly generanted key that can be decryptonly by the device thatオリジナリティinstalled it.Thus,ana appication 45 The user can move your appration to the internal storge through the system settings Warning:When the user enables USB masstorge to share files with a computter or unmounts the SD card via the system settings,the external storage is unted from the device and all appication the the extratem.
私たちは追加できます
android:installLocation
を選択します.
「preferExternal」またはandroid:installLocation=「aut」.何も書かないなら、デフォルトはAndroid:installLocation=「internal Only」です.これはプログラムだけを携帯メモリにインストールするので、移動できません.
SDK文書を調べて、原因を見つけました.プログラムにコードを追加すると、あなたのプログラムが勝手に移動できます.このコードです.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"
... >
以下はSDK文書のAndroid:installLocationに関する詳細です.アプリInstall Location
Quickview
<manifest>
To allow the system to install your appration on the external storge、modify your maifile to include theandroid:installLocationatribute in the
android:installLocation
element、with a value of eyether「・45914・Forame 914」<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"
... >
If You declare「<manifest>
」、You request that your appication be installed on the external storge、but the system does not Gur apple apple apple will be installed on the external storage.Iternal storexe.externager.the system will install it on the internal storge.The user can also move your appication between the two locations.If you declare“
preferExternal
”,you indicate that your appication may be installed on on the external storge,but you don't have a preference of install location.The system will decide where to install theure apporication.The.When your appration is installed on the external storage:
auto
file is saved on the external storge、but all prvate user data、databases、optimizedpreferExternal
files、and extraced native code are the internal device memory私たちは追加できます
android:installLocation
を選択します.
「preferExternal」またはandroid:installLocation=「aut」.何も書かないなら、デフォルトはAndroid:installLocation=「internal Only」です.これはプログラムだけを携帯メモリにインストールするので、移動できません.