質問編集履歴
2
番号がおかしかったので修正。
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,17 +32,17 @@
|
|
32
32
|
|
33
33
|
試したこと)
|
34
34
|
|
35
|
-
1
|
35
|
+
1 Environment.getExternalStorageDirectory() でSDカードのパスを取得
|
36
36
|
|
37
37
|
→ 「/storage/emulated/0」 を取得
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
2
|
41
|
+
2 「/storage/emulated/0」にテキストファイル「text.txt」を設置
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
3
|
45
|
+
3 以下のプログラムを実行
|
46
46
|
|
47
47
|
|
48
48
|
|
@@ -62,13 +62,15 @@
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
-
→FileNotFoundException が発生
|
65
|
+
→FileNotFoundException が発生
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
-
4
|
69
|
+
4 ファイルのパーミッションを確認
|
70
70
|
|
71
71
|
「ADB shell」→ 「ls -al /storage/emulated/0」
|
72
|
+
|
73
|
+
|
72
74
|
|
73
75
|
----------------------------------------------------------------
|
74
76
|
|
@@ -78,17 +80,23 @@
|
|
78
80
|
|
79
81
|
|
80
82
|
|
81
|
-
5
|
83
|
+
5 chmod でパーミッション変更
|
82
84
|
|
83
85
|
chmod 666 /storage/emulated/0/text.txt
|
84
86
|
|
85
87
|
|
86
88
|
|
89
|
+
特にメッセージ等は無し。(エラーや成功といったものも)
|
90
|
+
|
91
|
+
|
92
|
+
|
87
|
-
6
|
93
|
+
6 再びパーミッションを確認
|
88
94
|
|
89
95
|
|
90
96
|
|
91
97
|
ls -al /storage/emulated/0
|
98
|
+
|
99
|
+
|
92
100
|
|
93
101
|
----------------------------------------------------------------
|
94
102
|
|
1
連番がなぜか途中から1番になってしまったので修正しました。。。
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,7 +36,11 @@
|
|
36
36
|
|
37
37
|
→ 「/storage/emulated/0」 を取得
|
38
38
|
|
39
|
+
|
40
|
+
|
39
41
|
2. 「/storage/emulated/0」にテキストファイル「text.txt」を設置
|
42
|
+
|
43
|
+
|
40
44
|
|
41
45
|
3. 以下のプログラムを実行
|
42
46
|
|
@@ -59,6 +63,8 @@
|
|
59
63
|
|
60
64
|
|
61
65
|
→FileNotFoundException が発生
|
66
|
+
|
67
|
+
|
62
68
|
|
63
69
|
4. ファイルのパーミッションを確認
|
64
70
|
|