質問編集履歴

3

追加

2016/04/12 10:54

投稿

masaakitsuyoshi
masaakitsuyoshi

スコア102

test CHANGED
File without changes
test CHANGED
@@ -294,7 +294,7 @@
294
294
 
295
295
  ボタンをタップするまではエラーなく動作していますが、記述は合ってますでしょうか?
296
296
 
297
- (startActivityForResult, getActivityResultあたりが合ってるか不安です)
297
+ (startActivityForResult, onActivityResultあたりが合ってるか不安です)
298
298
 
299
299
 
300
300
 

2

追加

2016/04/12 10:54

投稿

masaakitsuyoshi
masaakitsuyoshi

スコア102

test CHANGED
File without changes
test CHANGED
@@ -1,22 +1,186 @@
1
- 別のアクティビティのTextViewに、
2
-
3
- 別のアクティビティで入力された文字列を表示するには?
4
-
5
-
6
-
7
- putExtra使うのでょうか?
1
+ こちら参考にました。
8
-
9
- それとも別の方法?
2
+
10
-
11
-
12
-
13
-
14
-
15
- NameJobEditActivity.java
3
+ [http://yan-note.blogspot.jp/2010/09/android_4530.html
4
+
5
+ ](http://yan-note.blogspot.jp/2010/09/android_4530.html)
6
+
7
+
8
+
9
+ Sub
16
10
 
17
11
  ```ここに言語を入力
18
12
 
13
+ public class SubActivity extends AppCompatActivity{
14
+
15
+
16
+
17
+ public String name;
18
+
19
+ public String job;
20
+
21
+ public int image;
22
+
23
+ public String comment;
24
+
25
+ public TextView text;
26
+
27
+ public TextView text2;
28
+
29
+ private static final int SUBACTIVITY = 1;
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+ @Override
40
+
41
+ public void onCreate(Bundle savedInstanceState) {
42
+
43
+ super.onCreate(savedInstanceState);
44
+
45
+ setContentView(R.layout.sub_activity);
46
+
47
+
48
+
49
+ android.support.v7.app.ActionBar actionbar = getSupportActionBar();
50
+
51
+ actionbar.setHomeButtonEnabled(true);
52
+
53
+ actionbar.setDisplayHomeAsUpEnabled(true);
54
+
55
+
56
+
57
+ text = (TextView) findViewById(R.id.textView);
58
+
59
+ text2 = (TextView) findViewById(R.id.textView2);
60
+
61
+ TextView text3 = (TextView) findViewById(R.id.textView3);
62
+
63
+ ImageView imageView = (ImageView) findViewById(R.id.imageView);
64
+
65
+ ListView listView = (ListView)findViewById(R.id.listView1);
66
+
67
+
68
+
69
+ Intent sub = getIntent();
70
+
71
+
72
+
73
+ name = sub.getStringExtra("list_names");
74
+
75
+ job = sub.getStringExtra("list_jobs");
76
+
77
+ image = sub.getIntExtra("list_images", R.drawable.human);
78
+
79
+ comment = sub.getStringExtra("list_comments");
80
+
81
+
82
+
83
+
84
+
85
+ text.setText(name);
86
+
87
+ text2.setText(job);
88
+
89
+ imageView.setImageResource(image);
90
+
91
+ text3.setText(comment);
92
+
93
+
94
+
95
+
96
+
97
+ text.setOnClickListener(new View.OnClickListener() {
98
+
99
+ @Override
100
+
101
+ public void onClick(View v) {
102
+
103
+
104
+
105
+ Intent njIntent = new Intent();
106
+
107
+ njIntent.putExtra("LIST_NAMES",name);
108
+
109
+ njIntent.putExtra("LIST_JOBS",job);
110
+
111
+ njIntent.putExtra("LIST_IMAGE",image);
112
+
113
+ njIntent.putExtra("LIST_COMMENT",comment);
114
+
115
+
116
+
117
+ njIntent.setClassName("com.example.tsuyoshiokaprofile", "com.example.tsuyoshiokaprofile.NameJobEditActivity");
118
+
119
+ startActivity(njIntent);
120
+
121
+
122
+
123
+
124
+
125
+ }
126
+
127
+ });
128
+
129
+
130
+
131
+ ーーーーーーー中略ーーーー
132
+
133
+ @Override
134
+
135
+ protected void onActivityResult (int requestCode, int resultCode, Intent intent) {
136
+
137
+ super.onActivityResult(requestCode, resultCode, intent);
138
+
139
+ if (requestCode == SUBACTIVITY) {
140
+
141
+ if (resultCode == RESULT_OK) {
142
+
143
+
144
+
145
+ text = (TextView) findViewById(R.id.textView);
146
+
147
+ text2 = (TextView) findViewById(R.id.textView2);
148
+
149
+ Intent njIntent = getIntent();
150
+
151
+ Bundle extras = intent.getExtras();
152
+
153
+ String editedName = njIntent.getStringExtra("NAME_INPUT");
154
+
155
+ String editedJob = njIntent.getStringExtra("JOB_INPUT");
156
+
157
+ text.setText(editedName);
158
+
159
+ text2.setText(editedJob);
160
+
161
+ Log.d("LogCat", "Log message");
162
+
163
+ }
164
+
165
+ }
166
+
167
+ }
168
+
169
+
170
+
171
+ ```
172
+
173
+ NameJobEditActivity
174
+
175
+ ```ここに言語を入力
176
+
177
+ package com.example.tsuyoshiokaprofile;
178
+
179
+ ーーーーーーーーーー略ーーーー
180
+
181
+
182
+
19
- public class NameJobEditActivity extends AppCompatActivity{
183
+ public class NameJobEditActivity extends AppCompatActivity{
20
184
 
21
185
 
22
186
 
@@ -26,8 +190,6 @@
26
190
 
27
191
  Button button;
28
192
 
29
- SubActivity subActivity;
30
-
31
193
  String editedName;
32
194
 
33
195
  String editedJob;
@@ -38,6 +200,22 @@
38
200
 
39
201
  String subJob;
40
202
 
203
+ private static final int SUBACTIVITY = 1;
204
+
205
+
206
+
207
+ String subText;
208
+
209
+ String subText2;
210
+
211
+ int subImage;
212
+
213
+ String subComment;
214
+
215
+
216
+
217
+
218
+
41
219
 
42
220
 
43
221
  @Override
@@ -60,22 +238,6 @@
60
238
 
61
239
 
62
240
 
63
- editedName = editName.getText().toString();
64
-
65
- editedJob = editJob.getText().toString();
66
-
67
-
68
-
69
- njIntent = getIntent();
70
-
71
- subName = njIntent.getStringExtra("LIST_NAMES");
72
-
73
- subJob =njIntent.getStringExtra("LIST_JOBS");
74
-
75
-
76
-
77
-
78
-
79
241
 
80
242
 
81
243
  button.setOnClickListener(new View.OnClickListener() {
@@ -84,15 +246,31 @@
84
246
 
85
247
  public void onClick(View v) {
86
248
 
87
- subActivity.text.setText(editedName);
88
-
89
- subActivity.text2.setText(editedJob);
90
-
91
-
92
-
93
-
94
-
95
- // ToDo ページ閉じる
249
+ //Inputされたの取得
250
+
251
+ editedName = editName.getText().toString();
252
+
253
+ editedJob = editJob.getText().toString();
254
+
255
+ //保存を押すと、subに戻る。
256
+
257
+ Intent intent = new Intent();
258
+
259
+ intent.setClassName("com.example.tsuyoshiokaprofile", "com.example.tsuyoshiokaprofile.SubActivity");
260
+
261
+ //intentに入力された文字列を詰める
262
+
263
+ intent.putExtra("NAME_INPUT",editedName);
264
+
265
+ intent.putExtra("JOB_INPUT",editedJob);
266
+
267
+
268
+
269
+ //値を詰めたものをSubに渡して画面遷移する
270
+
271
+ startActivityForResult(intent, SUBACTIVITY);
272
+
273
+
96
274
 
97
275
 
98
276
 
@@ -100,236 +278,26 @@
100
278
 
101
279
  });
102
280
 
281
+
282
+
283
+ }
284
+
285
+
286
+
287
+ }
288
+
103
289
  ```
104
290
 
105
- Sub
106
-
107
- ```ここに言語を入力
108
-
109
- public class SubActivity extends AppCompatActivity{
110
-
111
-
112
-
113
- String name;
114
-
115
- String job;
116
-
117
- public TextView text;
118
-
119
- public TextView text2;
120
-
121
-
122
-
123
- @Override
124
-
125
- public void onCreate(Bundle savedInstanceState) {
126
-
127
- super.onCreate(savedInstanceState);
128
-
129
- setContentView(R.layout.sub_activity);
130
-
131
-
132
-
133
- android.support.v7.app.ActionBar actionbar = getSupportActionBar();
134
-
135
- actionbar.setHomeButtonEnabled(true);
136
-
137
- actionbar.setDisplayHomeAsUpEnabled(true);
138
-
139
-
140
-
141
- text = (TextView) findViewById(R.id.textView);
142
-
143
- text2 = (TextView) findViewById(R.id.textView2);
144
-
145
- TextView text3 = (TextView) findViewById(R.id.textView3);
146
-
147
- ImageView imageView = (ImageView) findViewById(R.id.imageView);
148
-
149
- ListView listView = (ListView)findViewById(R.id.listView1);
150
-
151
-
152
-
153
- Intent sub = getIntent();
154
-
155
-
156
-
157
- name = sub.getStringExtra("list_names");
158
-
159
- job = sub.getStringExtra("list_jobs");
160
-
161
- int image = sub.getIntExtra("list_images", R.drawable.human);
162
-
163
- String comment = sub.getStringExtra("list_comments");
164
-
165
-
166
-
167
-
168
-
169
- assert text != null;
170
-
171
- assert text2 != null;
172
-
173
- assert imageView != null;
174
-
175
- assert text3 != null;
176
-
177
- text.setText(name);
178
-
179
- text2.setText(job);
180
-
181
- imageView.setImageResource(image);
182
-
183
- text3.setText(comment);
184
-
185
-
186
-
187
-
188
-
189
- text.setOnClickListener(new View.OnClickListener() {
190
-
191
- @Override
192
-
193
- public void onClick(View v) {
194
-
195
- Intent njIntent = new Intent();
196
-
197
- njIntent.putExtra("LIST_NAMES",name);
198
-
199
- njIntent.putExtra("LIST_JOBS",job);
200
-
201
- njIntent.setClassName("com.example.tsuyoshiokaprofile", "com.example.tsuyoshiokaprofile.NameJobEditActivity");
202
-
203
- startActivity(njIntent);
204
-
205
-
206
-
207
-
208
-
209
- }
210
-
211
- });
212
-
213
- ```
214
-
215
- Subの
216
-
217
- > text.setText(name);
218
-
219
- > text2.setText(job);
220
-
221
-
222
-
223
- textとtext2に、
224
-
225
-
226
-
227
- editNameに入力されたものと、
228
-
229
- editJobに入力されたものを
230
-
231
- setTextしたい。
232
-
233
-
234
-
235
- ```ここに言語を入力
236
-
237
-
238
-
239
- public class Main extends AppCompatActivity {
240
-
241
-
242
-
243
-
244
-
245
- private ListView listView;
246
-
247
- ArrayList<MemberProfile> memberProfilesList;
248
-
249
-
250
-
251
- protected void onCreate(Bundle savedInstanceState) {
252
-
253
- super.onCreate(savedInstanceState);
254
-
255
- setContentView(R.layout.activity_main);
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
- listView = (ListView)findViewById(R.id.listView1);
264
-
265
-
266
-
267
- //アレイリストのインスタンスを作成
268
-
269
- memberProfilesList = new ArrayList<>();
270
-
271
- memberProfilesList.add(new MemberProfile(getString(R.string.name1),getString(R.string.job1),R.drawable.human,getString(R.string.comment1)));
272
-
273
- memberProfilesList.add(new MemberProfile(getString(R.string.name2),getString(R.string.job2),R.drawable.human1,getString(R.string.comment2)));
274
-
275
-
276
-
277
- ーーー中略ーーー
278
-
279
- ```
280
-
281
-
282
-
283
- Mainの、
284
-
285
- > memberProfilesList.add(new MemberProfile(getString(R.string.name1),getString(R.string.job1),R.drawable.human,getString(R.string.comment1)));
286
-
287
-
288
-
289
- ここのMemberProfileの引数1番目と2番目に、
290
-
291
-
292
-
293
- editNameに入力されたものと、
294
-
295
- editJobに入力されたものを
296
-
297
- setTextしたい。
298
-
299
-
300
-
301
- エラー
302
-
303
- ```ここに言語を入力
304
-
305
- Process: com.example.tsuyoshiokaprofile, PID: 2204
306
-
307
- java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView com.example.tsuyoshiokaprofile.SubActivity.text' on a null object reference
308
-
309
- at com.example.tsuyoshiokaprofile.NameJobEditActivity$1.onClick(NameJobEditActivity.java:45)
310
-
311
- at android.view.View.performClick(View.java:4776)
312
-
313
- at android.view.View$PerformClick.run(View.java:19793)
314
-
315
- at android.os.Handler.handleCallback(Handler.java:739)
316
-
317
- at android.os.Handler.dispatchMessage(Handler.java:95)
318
-
319
- at android.os.Looper.loop(Looper.java:135)
320
-
321
- at android.app.ActivityThread.main(ActivityThread.java:5289)
322
-
323
- at java.lang.reflect.Method.invoke(Native Method)
324
-
325
- at java.lang.reflect.Method.invoke(Method.java:372)
326
-
327
- at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
328
-
329
- at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
330
-
331
- ```
332
-
333
- Subのテキストがnull?を意味している?
334
-
335
- でも、NameJobActivityを追加する前、Sub単体では問題なく動作していました。
291
+ Edit画面で入力し、ボタンを押すと、デフォルトの表示になってしまうのですがなぜでしょうか。。。
292
+
293
+
294
+
295
+ ボタンをタップするまではエラーなく動作していますが、記述は合ってますでしょうか?
296
+
297
+ (startActivityForResult, getActivityResultあたりが合ってるか不安です)
298
+
299
+
300
+
301
+ ![イメージ説明](a09412d87de9d4e9c7d33a3f8a92596b.png)
302
+
303
+ ![イメージ説明](18914f9dc9253bdbc26130b0ca7c8499.png)

1

追記

2016/04/12 10:52

投稿

masaakitsuyoshi
masaakitsuyoshi

スコア102

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,17 @@
26
26
 
27
27
  Button button;
28
28
 
29
-
29
+ SubActivity subActivity;
30
+
31
+ String editedName;
32
+
33
+ String editedJob;
34
+
35
+ Intent njIntent;
36
+
37
+ String subName;
38
+
39
+ String subJob;
30
40
 
31
41
 
32
42
 
@@ -50,119 +60,233 @@
50
60
 
51
61
 
52
62
 
53
-
63
+ editedName = editName.getText().toString();
64
+
54
-
65
+ editedJob = editJob.getText().toString();
66
+
67
+
68
+
55
-
69
+ njIntent = getIntent();
70
+
56
-
71
+ subName = njIntent.getStringExtra("LIST_NAMES");
72
+
73
+ subJob =njIntent.getStringExtra("LIST_JOBS");
74
+
75
+
76
+
77
+
78
+
79
+
80
+
57
- button.setOnClickListener(new View.OnClickListener() {
81
+ button.setOnClickListener(new View.OnClickListener() {
82
+
83
+ @Override
84
+
85
+ public void onClick(View v) {
86
+
87
+ subActivity.text.setText(editedName);
88
+
89
+ subActivity.text2.setText(editedJob);
90
+
91
+
92
+
93
+
94
+
95
+ // ToDo ページを閉じる
96
+
97
+
98
+
99
+ }
100
+
101
+ });
102
+
103
+ ```
104
+
105
+ Sub
106
+
107
+ ```ここに言語を入力
108
+
109
+ public class SubActivity extends AppCompatActivity{
110
+
111
+
112
+
113
+ String name;
114
+
115
+ String job;
116
+
117
+ public TextView text;
118
+
119
+ public TextView text2;
120
+
121
+
122
+
123
+ @Override
124
+
125
+ public void onCreate(Bundle savedInstanceState) {
126
+
127
+ super.onCreate(savedInstanceState);
128
+
129
+ setContentView(R.layout.sub_activity);
130
+
131
+
132
+
133
+ android.support.v7.app.ActionBar actionbar = getSupportActionBar();
134
+
135
+ actionbar.setHomeButtonEnabled(true);
136
+
137
+ actionbar.setDisplayHomeAsUpEnabled(true);
138
+
139
+
140
+
141
+ text = (TextView) findViewById(R.id.textView);
142
+
143
+ text2 = (TextView) findViewById(R.id.textView2);
144
+
145
+ TextView text3 = (TextView) findViewById(R.id.textView3);
146
+
147
+ ImageView imageView = (ImageView) findViewById(R.id.imageView);
148
+
149
+ ListView listView = (ListView)findViewById(R.id.listView1);
150
+
151
+
152
+
153
+ Intent sub = getIntent();
154
+
155
+
156
+
157
+ name = sub.getStringExtra("list_names");
158
+
159
+ job = sub.getStringExtra("list_jobs");
160
+
161
+ int image = sub.getIntExtra("list_images", R.drawable.human);
162
+
163
+ String comment = sub.getStringExtra("list_comments");
164
+
165
+
166
+
167
+
168
+
169
+ assert text != null;
170
+
171
+ assert text2 != null;
172
+
173
+ assert imageView != null;
174
+
175
+ assert text3 != null;
176
+
177
+ text.setText(name);
178
+
179
+ text2.setText(job);
180
+
181
+ imageView.setImageResource(image);
182
+
183
+ text3.setText(comment);
184
+
185
+
186
+
187
+
188
+
189
+ text.setOnClickListener(new View.OnClickListener() {
58
190
 
59
191
  @Override
60
192
 
61
193
  public void onClick(View v) {
62
194
 
63
-
64
-
65
- // .setText(editName);
66
-
67
- // .setText(editJob);
195
+ Intent njIntent = new Intent();
196
+
68
-
197
+ njIntent.putExtra("LIST_NAMES",name);
198
+
69
-
199
+ njIntent.putExtra("LIST_JOBS",job);
200
+
70
-
201
+ njIntent.setClassName("com.example.tsuyoshiokaprofile", "com.example.tsuyoshiokaprofile.NameJobEditActivity");
202
+
71
- // ToDo ページを閉じる
203
+ startActivity(njIntent);
72
-
73
-
74
-
204
+
205
+
206
+
207
+
208
+
75
- }
209
+ }
76
-
210
+
77
- });
211
+ });
78
-
79
-
80
-
81
- }
82
-
83
-
84
-
85
- }
86
212
 
87
213
  ```
88
214
 
89
- Sub
215
+ Sub
216
+
217
+ > text.setText(name);
218
+
219
+ > text2.setText(job);
220
+
221
+
222
+
223
+ textとtext2に、
224
+
225
+
226
+
227
+ editNameに入力されたものと、
228
+
229
+ editJobに入力されたものを
230
+
231
+ setTextしたい。
232
+
233
+
90
234
 
91
235
  ```ここに言語を入力
92
236
 
237
+
238
+
93
- public class SubActivity extends AppCompatActivity{
239
+ public class Main extends AppCompatActivity {
94
-
240
+
241
+
242
+
243
+
244
+
95
- @Override
245
+ private ListView listView;
246
+
96
-
247
+ ArrayList<MemberProfile> memberProfilesList;
248
+
249
+
250
+
97
- public void onCreate(Bundle savedInstanceState) {
251
+ protected void onCreate(Bundle savedInstanceState) {
98
252
 
99
253
  super.onCreate(savedInstanceState);
100
254
 
101
- setContentView(R.layout.sub_activity);
255
+ setContentView(R.layout.activity_main);
102
-
103
-
104
-
105
- ーーー中略ーーー
256
+
106
-
107
-
108
-
257
+
258
+
259
+
260
+
261
+
262
+
109
- TextView text = (TextView) findViewById(R.id.textView);
263
+ listView = (ListView)findViewById(R.id.listView1);
110
-
111
- TextView text2 = (TextView) findViewById(R.id.textView2);
264
+
112
-
113
- TextView text3 = (TextView) findViewById(R.id.textView3);
265
+
114
-
115
- ImageView imageView = (ImageView) findViewById(R.id.imageView);
266
+
116
-
117
-
118
-
119
- Intent sub = getIntent();
267
+ //アレイリストのインスタンスを作成
120
-
121
-
122
-
123
- String name = sub.getStringExtra("list_names");
268
+
124
-
125
- String job = sub.getStringExtra("list_jobs");
269
+ memberProfilesList = new ArrayList<>();
126
-
270
+
127
- int image = sub.getIntExtra("list_images", R.drawable.human);
271
+ memberProfilesList.add(new MemberProfile(getString(R.string.name1),getString(R.string.job1),R.drawable.human,getString(R.string.comment1)));
128
-
272
+
129
- String comment = sub.getStringExtra("list_comments");
273
+ memberProfilesList.add(new MemberProfile(getString(R.string.name2),getString(R.string.job2),R.drawable.human1,getString(R.string.comment2)));
130
-
131
-
132
-
133
-
134
-
135
- assert text != null;
274
+
136
-
137
- assert text2 != null;
275
+
138
-
139
- assert imageView != null;
140
-
141
- assert text3 != null;
142
-
143
- text.setText(name);
144
-
145
- text2.setText(job);
146
-
147
- imageView.setImageResource(image);
148
-
149
- text3.setText(comment);
150
-
151
-
152
276
 
153
277
  ーーー中略ーーー
154
278
 
155
279
  ```
156
280
 
281
+
282
+
157
- Sub
283
+ Main
284
+
158
-
285
+ > memberProfilesList.add(new MemberProfile(getString(R.string.name1),getString(R.string.job1),R.drawable.human,getString(R.string.comment1)));
286
+
287
+
288
+
159
- > text.setText(name);
289
+ ここのMemberProfileの引数1番目と2番目に、
160
-
161
- > text2.setText(job);
162
-
163
-
164
-
165
- textとtext2に、
166
290
 
167
291
 
168
292
 
@@ -174,66 +298,38 @@
174
298
 
175
299
 
176
300
 
301
+ エラー
302
+
177
303
  ```ここに言語を入力
178
304
 
179
-
180
-
181
- public class Main extends AppCompatActivity {
182
-
183
-
184
-
185
-
186
-
187
- private ListView listView;
188
-
189
- ArrayList<MemberProfile> memberProfilesList;
190
-
191
-
192
-
193
- protected void onCreate(Bundle savedInstanceState) {
194
-
195
- super.onCreate(savedInstanceState);
196
-
197
- setContentView(R.layout.activity_main);
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
- listView = (ListView)findViewById(R.id.listView1);
206
-
207
-
208
-
209
- //アレイリストのインスタンスを作成
210
-
211
- memberProfilesList = new ArrayList<>();
212
-
213
- memberProfilesList.add(new MemberProfile(getString(R.string.name1),getString(R.string.job1),R.drawable.human,getString(R.string.comment1)));
214
-
215
- memberProfilesList.add(new MemberProfile(getString(R.string.name2),getString(R.string.job2),R.drawable.human1,getString(R.string.comment2)));
216
-
217
-
218
-
219
- ーーー中略ーーー
305
+ Process: com.example.tsuyoshiokaprofile, PID: 2204
306
+
307
+ java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView com.example.tsuyoshiokaprofile.SubActivity.text' on a null object reference
308
+
309
+ at com.example.tsuyoshiokaprofile.NameJobEditActivity$1.onClick(NameJobEditActivity.java:45)
310
+
311
+ at android.view.View.performClick(View.java:4776)
312
+
313
+ at android.view.View$PerformClick.run(View.java:19793)
314
+
315
+ at android.os.Handler.handleCallback(Handler.java:739)
316
+
317
+ at android.os.Handler.dispatchMessage(Handler.java:95)
318
+
319
+ at android.os.Looper.loop(Looper.java:135)
320
+
321
+ at android.app.ActivityThread.main(ActivityThread.java:5289)
322
+
323
+ at java.lang.reflect.Method.invoke(Native Method)
324
+
325
+ at java.lang.reflect.Method.invoke(Method.java:372)
326
+
327
+ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
328
+
329
+ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
220
330
 
221
331
  ```
222
332
 
223
-
224
-
225
- Mainの、
226
-
227
- > memberProfilesList.add(new MemberProfile(getString(R.string.name1),getString(R.string.job1),R.drawable.human,getString(R.string.comment1)));
228
-
229
-
230
-
231
- ここMemberProfileの引数1番目と2番目に、
333
+ Subテキストがnull?を意味している?
232
-
233
-
234
-
334
+
235
- editNameに入力されものと、
335
+ でも、NameJobActivityを追加する前、Sub単体では問題なく動作していまし
236
-
237
- editJobに入力されたものを
238
-
239
- setTextしたい。