Search code examples
androidimagefilemove

android-where to store lots of images and how to move them while installing


I'm writing an android app that contains about 500 images . there are somethings that make me worry, I don't want to use internet.

1-the application size will be very big , is there anyway to moving images to sd card while installing? some devices may don't have this amount of space on the phone .

2-should I make 3 images for hdpi , ldpi and mdpi ?


Solution

    1. Yes, it will be big. No, you can't remove them from your package.
    2. No, you can make only hdpi images. Android will scale them automatically (which may slow down a bit the app).

    Suggestion - use internet. Since the user has internet to download your app, he can wait to download the resources on first start. Also it give you the ability to add/remove files via online configuration. Just imagine if you have to add 1 image and upload new version - this means that the user will have to download the same huge package again.