private static void populateFancy ( SQLiteDatabase writableDb ) { long startOfToday = DateUtil . parse ( DateUtil . format ( System . currentTimeMillis ( ) ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_EXPENSE , "Clothes" , "New jeans" , 10000 , startOfToday , Item . NO_ID ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_EXPENSE , "Flat / House" , "Monthly rent" , 35000 , startOfToday , Item . NO_ID ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_EXPENSE , "Grocery" , "Fruits & vegetables" , 3567 , DateUtil . parse ( "19/08/2015" ) , Item . NO_ID ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_EXPENSE , "Fuel" , "Full gas tank" , 7590 , DateUtil . parse ( "14/08/2015" ) , Item . NO_ID ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_EXPENSE , "Clothes" , "New shirt" , 3599 , DateUtil . parse ( "11/08/2015" ) , Item . NO_ID ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_EXPENSE , "Restaurant" , "Family get together" , 3691 , DateUtil . parse ( "05/08/2015" ) , Item . NO_ID ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_INCOME , "Salary" , "" , 90000 , DateUtil . parse ( "31/07/2015" ) , Item . NO_ID ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_EXPENSE , "Personal care" , "New perfume" , 3865 , DateUtil . parse ( "29/07/2015" ) , Item . NO_ID ) ) ; ItemDao . saveItem ( writableDb , new Item ( Item . TYPE_EXPENSE , "Grocery" , "Bottle of milk" , 345 , DateUtil . parse ( "26/07/2015" ) , Item . NO_ID ) ) ; }
Generates reasonable amount of good-looking income / expense items .