private static void populateDummy(SQLiteDatabase writableDb){
  long now=System.currentTimeMillis();
  Calendar time=Calendar.getInstance();
  time.setTimeInMillis(now);
  for (int i=0; i < 500; i++) {
    int type=i % 2 == 0 ? Item.TYPE_EXPENSE : Item.TYPE_INCOME;
    long millis=time.getTimeInMillis();
    Item item=new Item(type,"Test #" + i % 100,"#" + i,i * 1000,millis,Item.NO_ID);
    ItemDao.saveItem(writableDb,item);
    if (i != 0 && i % 3 == 0) {
      time.add(Calendar.DAY_OF_YEAR,-10);
    }
  }
}

private static void populateDummy ( SQLiteDatabase writableDb ) { long now = System . currentTimeMillis ( ) ; Calendar time = Calendar . getInstance ( ) ; time . setTimeInMillis ( now ) ; for ( int i = 0 ; i < 500 ; i ++ ) { int type = i % 2 == 0 ? Item . TYPE_EXPENSE : Item . TYPE_INCOME ; long millis = time . getTimeInMillis ( ) ; Item item = new Item ( type , "Test #" + i % 100 , "#" + i , i * 1000 , millis , Item . NO_ID ) ; ItemDao . saveItem ( writableDb , item ) ; if ( i != 0 && i % 3 == 0 ) { time . add ( Calendar . DAY_OF_YEAR , - 10 ) ; } } }
generates lots of placeholder items .
