title: Filling an array from a dynamic list of drawables using getIdentifier fails
body: <p>As the title says, my code fails when I try to fill the array, but it works with just one item</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      int width=getWidth(this);
      int height=getHeight(this);
      String resolution= new String();
      tamanhos= new String[]{ "240x320","320x480","480x800","800x1280"};
      wallpapers= new String[]{ "fdonegrobrillo"};
      resolution=tamanhos[3]
  
      mImages=new int[wallpapers.length];
      Resources res= this.getResources();
      for(int i=0;i&lt;wallpapers.length;i++){
      mImages[i]=res.getIdentifier(wallpapers[i]+resolution, "drawable",this.getPackageName());
  }
  </code></pre>
  
  <p>I have all the corresponding drawables. When i try with just one item the app works, but if I add another item to wallpapers array, it throws an error (fatal signal 11(SIGSEGV))</p>
  
  <p>I tried with a harcoded array like this</p>
  
  <pre><code>mImages=new int[]{
          this.getResources().getIdentifier("fdobyn800x1280",
                    "drawable", this.getPackageName())
  
  };
  </code></pre>
  
  <p>I works, but its the same when i add another item</p>
  
  <pre><code>mImages=new int[]{
          this.getResources().getIdentifier("fdobyn800x1280",
                    "drawable", this.getPackageName()),
          this.getResources().getIdentifier("fdonegrobrillo800x1280",
                            "drawable", this.getPackageName())
  
  };
  </code></pre>