Changeset 105
- Timestamp:
- 02/04/09 10:20:59 (12 months ago)
- Location:
- trunk/rapidandroid/org.rapidandroid/src/org/rapidandroid/activity
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/rapidandroid/org.rapidandroid/src/org/rapidandroid/activity/ChartData.java
r104 r105 103 103 wv.addJavascriptInterface(mBroker, JAVASCRIPT_PROPERTYNAME); 104 104 wv.loadUrl(CHART_FILE); 105 106 105 //mBroker.loadGraph(); 107 106 wv.debugDump(); 108 107 } -
trunk/rapidandroid/org.rapidandroid/src/org/rapidandroid/activity/Dashboard.java
r101 r105 106 106 private int selectedListViewPosition = -1; 107 107 108 private Date mStartDate ;109 private Date mEndDate ;108 private Date mStartDate = Constants.NULLDATE; 109 private Date mEndDate = Constants.NULLDATE; 110 110 private int mScreenWidth; 111 111 … … 168 168 mEndDate = new Date(); 169 169 mStartDate = new Date(); 170 mStartDate.setDate(mEndDate.getDate() - 1);170 mStartDate.setDate(mEndDate.getDate() - 7); 171 171 } 172 172 … … 496 496 if(mListviewCursor == null) { 497 497 if(mChosenForm != null && !mShowAllMessages) { 498 String whereclause = " rapidandroid_message.time >= '" + Message.SQLDateFormatter.format(mStartDate) + "' AND time <= '" + Message.SQLDateFormatter.format(mEndDate) + "'"; 499 mListviewCursor = getContentResolver().query(Uri.parse(RapidSmsDBConstants.FormData.CONTENT_URI_PREFIX + mChosenForm.getFormId()), null,whereclause,null,null); 498 String whereclause = " rapidandroid_message.time >= '" 499 + Message.SQLDateFormatter.format(mStartDate) + "' AND time <= '" 500 + Message.SQLDateFormatter.format(mEndDate) + "'"; 501 mListviewCursor = getContentResolver().query(Uri.parse(RapidSmsDBConstants.FormData.CONTENT_URI_PREFIX + mChosenForm.getFormId()), null,whereclause,null,null); 502 503 504 500 505 501 506 } else if(mShowAllMessages && mChosenForm == null) { -
trunk/rapidandroid/org.rapidandroid/src/org/rapidandroid/activity/FormReviewer.java
r100 r105 366 366 367 367 // first, let's get the 368 String token = Long.toString(Math.abs(r.nextLong()), 36);368 String token = phones[r.nextInt(phones.length)];//Long.toString(Math.abs(r.nextLong()), 36); 369 369 Monitor monitor = MessageTranslator.GetMonitorAndInsertIfNew(this, token); 370 370 … … 396 396 private Date getRandomDate() { 397 397 Calendar cdr = Calendar.getInstance(); 398 cdr.set(1999, 1, 1); 399 cdr.set(Calendar.HOUR_OF_DAY, 6); 398 //cdr.set(1999, 1, 1); 399 cdr.set(Calendar.MONTH,cdr.get(Calendar.MONTH) -3); 400 cdr.set(Calendar.HOUR_OF_DAY, 0); 400 401 cdr.set(Calendar.MINUTE, 0); 401 402 cdr.set(Calendar.SECOND, 0); 402 403 long val1 = cdr.getTimeInMillis(); 403 404 404 cdr .set(2009, 1, 29);405 cdr = Calendar.getInstance(); 405 406 cdr.set(Calendar.HOUR_OF_DAY, 23); 406 cdr.set(Calendar.MINUTE, 0);407 cdr.set(Calendar.MINUTE, 59); 407 408 cdr.set(Calendar.SECOND, 0); 408 409 long val2 = cdr.getTimeInMillis(); … … 425 426 "lun", "lhr", "asvasd", "alksjwlejrwer", "bshdkghk", "akhsdwer", 426 427 "tiwowuy", "xvcxbxkhcvb" }; 428 private static String[] phones = new String[] {"5558675309","6175803100", "2128246918", "2123267768", "6175803103"}; 427 429 428 430 private static String[] floats = new String[] { "0.24", "0.54", "1.5","50%", "25 pct","33 %", "15pct", "2/3", "3:2"};