@@ -94,6 +94,7 @@ public class MainActivity extends Activity implements GLSurfaceView.Renderer {
9494 private static final int REQUEST_IMAGE_CAPTURE = 100 ;
9595 private static final int REQUEST_IMAGE_SELECT = 200 ;
9696 public static final int MEDIA_TYPE_IMAGE = 1 ;
97+ public static final String ACKNOWLEDGE_YOUR_CONTRIBUTIONS = "acknowledge your contributions!" ;
9798
9899
99100 String welcome = "This application let you participate in experiment crowdsourcing " +
@@ -571,11 +572,15 @@ private void loadCachedEmail() {
571572 email = read_one_string_file (pemail );
572573 if (email == null ) email = "" ;
573574 if (!email .equals ("" )) {
574- t_email .setText (email .trim ());
575575 SpannableString spanString = new SpannableString (email );
576576 spanString .setSpan (new UnderlineSpan (), 0 , spanString .length (), 0 );
577577 t_email .setText (spanString );
578+ } else {
579+ SpannableString spanString = new SpannableString (ACKNOWLEDGE_YOUR_CONTRIBUTIONS );
580+ spanString .setSpan (new UnderlineSpan (), 0 , spanString .length (), 0 );
581+ t_email .setText (spanString );
578582 }
583+
579584 }
580585
581586 private boolean updateEMail (String newEmailValue ) {
@@ -2347,11 +2352,12 @@ public void run() {
23472352 }
23482353 if (it == 0 ) {
23492354 // first iteration used for mobile warms up if it was in a low freq state
2355+ publishProgress ("\n Recognition time (warms up) " + processingTime + " ms \n " );
23502356 continue ;
23512357 }
2358+ publishProgress ("\n Recognition time " + it + ": " + processingTime + " ms \n " );
23522359 cpuFreqs .add (get_cpu_freqs ());
23532360 processingTimes .add (processingTime );
2354- publishProgress ("\n Recognition time " + it + ": " + processingTime + " ms \n " );
23552361 }
23562362 publishProgress ("\n Recognition result:\n " + recognitionResultText + "\n \n " );
23572363
0 commit comments