title: Best way to have lots of pictures in an App? Android Studio
body: <p>So I am making an app that has over 200 sunset pictures (taken by myself:P). I want to display them all via <code>android.R.layout.simple_gallery_item</code> I tried tossing them all in the drawable folder, then bitmapping each one and drawing it on the screen, but I get an Out of memory error.</p>
  
  <p>What would be the best way to store these jpg? </p>
  
  <p>The only two ways I can think of are:</p>
  
  <ul>
  <li>A separate zip file download from the app? </li>
  <li>Drawable File? (Using bitmap wouldn't be the right way?)</li>
  <li>Somehow storing them in the apk then pushing them onto the device before installing the app?(If possible, because if I am correct(which I am probably not), when building the apk, everything comes together and some files morph into one)</li>
  </ul>
  
  <p>(PS: If can't tell, I am new to Android Developing)</p>
  
  <p>Thanks!</p>
  
  <p>Code:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      System.out.println("Noobs");
  
      ArrayList&lt;Image&gt; img = new ArrayList&lt;Image&gt;();
      for (int i=1; i&lt;3; i++) {
          int imageResource = getResources().getIdentifier("@drawable/bm" + String.valueOf(i), null, getPackageName());
          img.add(ImageView.setImageResource(imageResource));
          System.out.println("Did Pic "+String.valueOf(i));
      }
  
  
      System.out.println("Come so far!");
      ListAdapter picAdapt = new ArrayAdapter&lt;Image&gt;(this, android.R.layout.simple_gallery_item, img);
      ListView picListView = (ListView) findViewById(R.id.gallery);
      picListView.setAdapter(picAdapt);
  </code></pre>
  
  <p>}
  }</p>