public String [ ] getMealCache ( Date dateStart , Date dateEnd ) throws Exception { int iDays = ( int ) ( ( dateEnd . getTime ( ) - dateStart . getTime ( ) ) / Constants . KMS_IN_A_DAY ) + 2 ; if ( iDays <= 0 ) return null ; String [ ] rgstrMeals = new String [ iDays ] ; Date date = new Date ( dateStart . getTime ( ) ) ; for ( int iDay = 0 ; iDay < iDays ; iDay ++ ) { rgstrMeals [ iDay ] = this . getRemoteMealDesc ( date ) ; date . setTime ( date . getTime ( ) + Constants . KMS_IN_A_DAY ) ; } return rgstrMeals ; }
Get the meals on each day of this product and put them in an array .