質問編集履歴

1

MakeQuizActivity内にあったMainActivity main = new MainActivity();とstartActivity(intent);を消しました。

2019/10/06 08:36

投稿

j06110611
j06110611

スコア54

test CHANGED
File without changes
test CHANGED
@@ -120,8 +120,6 @@
120
120
 
121
121
  PreferenceManager pm = new PreferenceManager();
122
122
 
123
- MainActivity main = new MainActivity();
124
-
125
123
  SharedPreferences sp = getSharedPreferences("DataStore",MODE_PRIVATE);
126
124
 
127
125
  SharedPreferences.Editor editor = sp.edit();
@@ -150,13 +148,7 @@
150
148
 
151
149
  setResult(RESULT_OK, intent);
152
150
 
153
- startActivity(intent);
154
-
155
151
  finish();
156
-
157
- //main.addData(title);
158
-
159
-
160
152
 
161
153
  }
162
154