Pentax DSLR Remote Control app.
Revision | 2af999a7ed8f5831447bdf571a84065bcc3cb2db (tree) |
---|---|
Time | 2019-03-31 00:57:11 |
Author | MRSa <mrsa@myad...> |
Commiter | MRSa |
他から呼ばれてもよいようにちょっと調整。
@@ -13,6 +13,7 @@ | ||
13 | 13 | |
14 | 14 | <application |
15 | 15 | android:allowBackup="true" |
16 | + android:fullBackupContent="true" | |
16 | 17 | android:icon="@mipmap/ic_launcher" |
17 | 18 | android:label="@string/app_name" |
18 | 19 | android:roundIcon="@mipmap/ic_launcher_round" |
@@ -26,6 +27,10 @@ | ||
26 | 27 | <action android:name="android.intent.action.MAIN" /> |
27 | 28 | <category android:name="android.intent.category.LAUNCHER" /> |
28 | 29 | </intent-filter> |
30 | + <intent-filter> | |
31 | + <action android:name="android.intent.action.VIEW" /> | |
32 | + <category android:name="android.intent.category.DEFAULT" /> | |
33 | + </intent-filter> | |
29 | 34 | </activity> |
30 | 35 | <meta-data android:name="android.max_aspect" android:value="ratio_float"/> |
31 | 36 | </application> |
@@ -33,7 +33,7 @@ public class AutoTransferFragment extends Fragment implements View.OnClickListen | ||
33 | 33 | private final String TAG = this.toString(); |
34 | 34 | |
35 | 35 | private static final int SLEEP_MS = 300; // 動作チェック待ち時間 |
36 | - private static final int SLEEP_WAIT_MS = 3500; // 一覧確認の待機時間 (3.5秒おき) | |
36 | + private static final int SLEEP_WAIT_MS = 4500; // 一覧確認の待機時間 (4.5秒おき) | |
37 | 37 | |
38 | 38 | private AppCompatActivity activity = null; |
39 | 39 | private FileAutoTransferMain transferMain = null; |
@@ -188,7 +188,7 @@ public class AutoTransferFragment extends Fragment implements View.OnClickListen | ||
188 | 188 | @Override |
189 | 189 | public void run() |
190 | 190 | { |
191 | - int count = 0; | |
191 | + //int count = 0; | |
192 | 192 | if (transferMain != null) |
193 | 193 | { |
194 | 194 | // 前処理... |
@@ -218,8 +218,8 @@ public class AutoTransferFragment extends Fragment implements View.OnClickListen | ||
218 | 218 | Thread.sleep(SLEEP_WAIT_MS - checkTime); |
219 | 219 | } |
220 | 220 | } |
221 | - count++; | |
222 | - Log.v(TAG, "TRANSFER LOOP : " + count); | |
221 | + //count++; | |
222 | + //Log.v(TAG, "TRANSFER LOOP : " + count); | |
223 | 223 | } |
224 | 224 | catch (Exception e) |
225 | 225 | { |
@@ -213,11 +213,11 @@ class FileAutoTransferMain implements ICameraContentListCallback | ||
213 | 213 | { |
214 | 214 | firstContent = false; |
215 | 215 | |
216 | - // 初期データを突っ込んでおく... | |
216 | + // 初期データをHashMapに突っ込んでおく... | |
217 | 217 | for (ICameraContent content : baseContentList) |
218 | 218 | { |
219 | 219 | String key = (content.getContentPath() + "/" + content.getContentName()).toLowerCase(); |
220 | - Log.v(TAG, "FILE : " + key); | |
220 | + //Log.v(TAG, "FILE : " + key); | |
221 | 221 | contentHashMap.put(key, content); |
222 | 222 | } |
223 | 223 | } |