質問編集履歴
1
ファイルパス生成部分の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,28 @@
|
|
15
15
|
}
|
16
16
|
|
17
17
|
```
|
18
|
+
|
19
|
+
fileNameは別のActivityで以下のように作成してます
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
private fun makeSaveFile(): String {
|
24
|
+
|
25
|
+
val timeStamp = SimpleDateFormat("yyyyMMdd_HHmmss", Locale.JAPAN).format(Date())
|
26
|
+
|
27
|
+
val folder = this.activity?.getExternalFilesDir(null)
|
28
|
+
|
29
|
+
val fileName = "sharephoto" + timeStamp
|
30
|
+
|
31
|
+
val file = File(folder, fileName)
|
32
|
+
|
33
|
+
return file.absolutePath
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
|
18
40
|
|
19
41
|
|
20
42
|
|