skip to Main Content

I am trying to develop an app on android using xamarin.
i just wanted to know where to store images.I mean which way is better, should i store images in DB or in a separate folder.
which one is better?

I was talking about images of products. for example:- i downloaded the ebay app today. app is very small in terms of size. but ebay has loads of images of the products.

Please explain.

2

Answers


  1. Store your files in the folder name returned by this:

      Environment.GetFolderPath(Environment.SpecialFolder.Personal)
    

    It will return the local folder of your app in internal storage:

    /data/data/@PACKAGE_NAME@/files
    
    Login or Signup to reply.
  2. Store them in Resource folders (build action AndroidResource) as described in the Xamarin.Droid docs.

    Make different sizes of your image for different screen-densities and store them in seperate folders as described in the Android developer documentation.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search