SDCard

Xperia™ game developer tip: How to make an application install directly to the SD card

When designing your game for the Xperia™ PLAY or other Android™ devices, Sony Ericsson highly recommends that you enable the Move to SD card option. This will make your gaming files movable to external storage. This is an optional feature you can declare for your application with the android:installLocation manifest attribute. If you do not declare this attribute, your application will be installed on the internal storage only and it cannot be moved to the external storage.

Installing on the external storage is ideal for large applications, especially games, since they are not tightly integrated with the system. Making the gaming files movable to the SD card increases the performance of the device, and also maximizes the number of games or apps that can be installed in the phone memory of the device. Otherwise, not allowing this feature means users may be forced to delete pre-installed games or games already paid for, in order to free up space.

To make an application install directly to the SD card, use the attribute android:installLocation=”preferExternal” in order to make your application install to the SD Card by default.

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

For more information about install location, refer to http://developer.android.com/guide/appendix/install-location.html.

Comments 9

Sort by: Newest | Oldest | Most popular

  1. By Drakesh Kumar

    #1

    After installing some apps ther is a note on disply that the device memory full. But internal memory still empty.Idon’t know how to use internal memory.Except that other features are good.please help me a

    • By Joe Padre

      #2

      Hi Drakesh,
      Try going here: Settings>Storage>Miscellaneous- Transfer data to SD card.
      This will help transfer data to SD card from internal memory. If this doesn’t help, go to in Apps> move apps manually to SD Card or internal memory.
      Best regards,
      Joe from Developer World

  2. By Drakesh Kumar

    #3

    After installing some apps ther is a note on disply that the device memory full. But internal memory still empty.Idon’t know how to use internal memory.Except that other features are good.

  3. By Soumya Ghosh

    #4

    I am running with android 2.1 in X8. Can I use app2sd ?

  4. Pingback #5

    Очень не плохо написано, РЕАЛЬНО…….

    When designing your game for the Xperia™ PLAY or other Android™ devices, Sony Ericsson highly recommends that you enable the Move to SD card option…..

  5. By Tenka

    #6

    Don’t put your cart before the horse!
    You should launch your new products with large internal storage rather than recommend developers enable the app2sd function. Of course, app2sd may increase the performance of the android OS, but will also decrease the performance of that application if user used SD card with poor speed. You should let your customers have a choice to decide whether to move apps to SD or not.

    • By Joe Padre

      #7

      Tenka, the Xperia PLAY phones come pre-loaded with high performance SD cards. The app2sd function recommendation will help the user keep internal memory clutter-free which otherwise would affect the performance of any phone if the phone is totally exhausted by apps. Increasing the internal storage will be addressed and resolved in future models. Regarding the performance of the applications running on the SD card, it might take a 10% more intial load time but no issues have been found during the game play. Thanks!

    • By Joe Padre

      #9

      Hi Omer, the game developer is responsible for defining the attribute in the code app. If the attribute is defined, the Xperia user who downloads the app will have the “Move to SD card” option enabled in the Storage setting for the app. From here, the Xperia user can decide whether or not to move the app file to the SD card.

1-9 of 9 comments.