質問するログイン新規登録

回答編集履歴

1

メソッド名間違い

2018/05/10 09:08

投稿

keicha_hrs
keicha_hrs

スコア6768

answer CHANGED
@@ -34,7 +34,7 @@
34
34
  Intent intent = new Intent(this, ActivityA.class);
35
35
  intent.setFlags(
36
36
  Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
37
- intent.setExtra("D", true); // フラグをセット
37
+ intent.putExtra("D", true); // フラグをセット
38
38
  startActivity(intent);
39
39
  ```
40
40