+
+ try
+ {
+ SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);
+ String waitMsStr = preferences.getString(FUJIX_LIVEVIEW_WAIT, FUJIX_LIVEVIEW_WAIT_DEFAULT_VALUE);
+ int wait = Integer.parseInt(waitMsStr);
+ if ((wait >= 10)&&(wait <= 800))
+ {
+ waitMs = wait;
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ waitMs = 80;
+ }
+ Log.v(TAG, "LOOP WAIT : " + waitMs + " ms");