質問編集履歴
2
コードの訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
super.onCreate(savedInstanceState);
|
27
27
|
setContentView(R.layout.activity_test);
|
28
28
|
|
29
|
-
Intent intent
|
29
|
+
Intent intent = getIntent();
|
30
30
|
int ListTitle = intent.getIntExtra("ListTitle", 0);
|
31
31
|
int position = intent.getIntExtra("position",0);
|
32
32
|
isChecked a = new isChecked();
|
@@ -52,9 +52,9 @@
|
|
52
52
|
|
53
53
|
private class isChecked{
|
54
54
|
Intent intent = getIntent();
|
55
|
-
boolean isChecked = intent
|
55
|
+
boolean isChecked = intent.getBooleanExtra("isChecked", false);
|
56
|
-
boolean isChecked2 = intent
|
56
|
+
boolean isChecked2 = intent.getBooleanExtra("isChecked2", false);
|
57
|
-
boolean isChecked3 = intent
|
57
|
+
boolean isChecked3 = intent.getBooleanExtra("isChecked3", false);
|
58
58
|
|
59
59
|
VideoView v = (VideoView)findViewById(R.id.v2);
|
60
60
|
|
1
クラス名 メソッド名の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Main.Activity にてリストとチェックボックスから選択した項目により、再生する動画を変えます。
|
3
3
|
以下のコードを動作させると、チェックボックスのチェックの有無により処理を分岐する isChecked メソッド内の、if内の動画がループしてしまいます。
|
4
4
|
|
5
|
-
本来なら、isCheckd → isChecked2 → isChecked3 とチェックを進めていきたいのですが、例えばisCheckedのチェックボックスにチェックを入れると、if(isCheckd)メソッド内の動画v_4がループして先に進まなくなってしまいます。
|
5
|
+
本来なら、isCheckd → isChecked2 → isChecked3 とチェックを進めていきたいのですが、例えばisCheckedのチェックボックスにチェックを入れると、if(isChecked)メソッド内の動画v_4がループして先に進まなくなってしまいます。
|
6
6
|
|
7
7
|
ループしないようにするアドバイスがいただけましたら幸いです。初心者のためレベルの低い質問で恐縮ですが、どうぞよろしくお願いいたします。
|
8
8
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
Intent intent2 = getIntent();
|
30
30
|
int ListTitle = intent.getIntExtra("ListTitle", 0);
|
31
31
|
int position = intent.getIntExtra("position",0);
|
32
|
-
Check
|
32
|
+
isChecked a = new isChecked();
|
33
33
|
|
34
34
|
switch (ListTitle) {
|
35
35
|
|
@@ -50,7 +50,7 @@
|
|
50
50
|
}
|
51
51
|
}
|
52
52
|
|
53
|
-
private class Check
|
53
|
+
private class isChecked{
|
54
54
|
Intent intent = getIntent();
|
55
55
|
boolean isChecked = intent2.getBooleanExtra("isChecked", false);
|
56
56
|
boolean isChecked2 = intent2.getBooleanExtra("isChecked2", false);
|