title: Android: Database Fields not populating through a loop
body: <p>I am currently trying to make a function to prepopulate fields and determine if they have been set up or not. I need to add a total of 46 entries into my database so I figured a for loop would come in handy:</p>
  
  <pre><code>public void prepopulate() {
          Locker setup = new Locker(this);
          for (int x = 46; x &lt; 47; x++) {
              setup.open();
              String lockerNumber = "Locker" + x;
              setup.createLockerEntry(lockerNumber, 0);
              setup.close();
          }
  </code></pre>
  
  <p>I</p>
  
  <p>Any ideas, maybe a for loop wont work? </p>