質問編集履歴
4
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -208,6 +208,18 @@
|
|
208
208
|
|
209
209
|
|
210
210
|
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
※追記
|
220
|
+
|
221
|
+
|
222
|
+
|
211
223
|
```java
|
212
224
|
|
213
225
|
//付け加え分
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -205,3 +205,53 @@
|
|
205
205
|
原因がわからずです。
|
206
206
|
|
207
207
|
よろしくお願いします。
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
```java
|
212
|
+
|
213
|
+
//付け加え分
|
214
|
+
|
215
|
+
public void onClick(View v) {
|
216
|
+
|
217
|
+
Intent intent = new Intent(this, Signup.class);
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
EditText editText = (EditText)this.findViewById(R.id.sign_up_button);
|
222
|
+
|
223
|
+
startActivity(intent);
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
}
|
228
|
+
|
229
|
+
}
|
230
|
+
|
231
|
+
```
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
エラー内容
|
236
|
+
|
237
|
+
```
|
238
|
+
|
239
|
+
エラー: Intentに適切なコンストラクタが見つかりません(Login.UserLoginTask,Class<Signup>)
|
240
|
+
|
241
|
+
コンストラクタ Intent.Intent(String,Uri)は使用できません
|
242
|
+
|
243
|
+
(引数の不一致: Login.UserLoginTaskをStringに変換できません:)
|
244
|
+
|
245
|
+
コンストラクタ Intent.Intent(Context,Class<?>)は使用できません
|
246
|
+
|
247
|
+
(引数の不一致: Login.UserLoginTaskをContextに変換できません:)
|
248
|
+
|
249
|
+
```
|
250
|
+
|
251
|
+
```
|
252
|
+
|
253
|
+
エラー: シンボルを見つけられません
|
254
|
+
|
255
|
+
シンボル: メソッド findViewById(int)
|
256
|
+
|
257
|
+
```
|
2
エラー内容変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,17 +10,9 @@
|
|
10
10
|
|
11
11
|
```
|
12
12
|
|
13
|
-
エラー: <identifier>がありません
|
14
|
-
|
15
|
-
エラー: 型の開始が不正です
|
16
|
-
|
17
|
-
エラー:
|
13
|
+
エラー: シンボルを見つけられません
|
18
|
-
|
19
|
-
|
14
|
+
|
20
|
-
|
21
|
-
|
15
|
+
シンボル: メソッド onCreate(Bundle)
|
22
|
-
|
23
|
-
エラー: ';'がありません
|
24
16
|
|
25
17
|
```
|
26
18
|
|
@@ -30,65 +22,161 @@
|
|
30
22
|
|
31
23
|
|
32
24
|
|
25
|
+
```
|
26
|
+
|
27
|
+
java
|
28
|
+
|
29
|
+
【Login.java】
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
/**
|
34
|
+
|
35
|
+
* A login screen that offers login via email/password.
|
36
|
+
|
37
|
+
*/
|
38
|
+
|
39
|
+
public class Login extends AppCompatActivity implements LoaderCallbacks<Cursor> {
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
/**
|
44
|
+
|
45
|
+
* Id to identity READ_CONTACTS permission request.
|
46
|
+
|
47
|
+
*/
|
48
|
+
|
49
|
+
private static final int REQUEST_READ_CONTACTS = 0;
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
/**
|
54
|
+
|
55
|
+
* A dummy authentication store containing known user names and passwords.
|
56
|
+
|
57
|
+
* TODO: remove after connecting to a real authentication system.
|
58
|
+
|
59
|
+
*/
|
60
|
+
|
61
|
+
private static final String[] DUMMY_CREDENTIALS = new String[]{
|
62
|
+
|
63
|
+
"foo@example.com:hello", "bar@example.com:world"
|
64
|
+
|
65
|
+
};
|
66
|
+
|
67
|
+
/**
|
68
|
+
|
69
|
+
* Keep track of the login task to ensure we can cancel it if requested.
|
70
|
+
|
71
|
+
*/
|
72
|
+
|
73
|
+
private UserLoginTask mAuthTask = null;
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
// UI references.
|
78
|
+
|
79
|
+
private AutoCompleteTextView mEmailView;
|
80
|
+
|
81
|
+
private EditText mPasswordView;
|
82
|
+
|
83
|
+
private View mProgressView;
|
84
|
+
|
85
|
+
private View mLoginFormView;
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
@Override
|
90
|
+
|
91
|
+
protected void onCreate(Bundle savedInstanceState) {
|
92
|
+
|
93
|
+
super.onCreate(savedInstanceState);
|
94
|
+
|
95
|
+
setContentView(R.layout.login);
|
96
|
+
|
97
|
+
// Set up the login form.
|
98
|
+
|
99
|
+
mEmailView = (AutoCompleteTextView) findViewById(R.id.email);
|
100
|
+
|
101
|
+
populateAutoComplete();
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
〜〜〜〜〜略〜〜〜〜〜〜〜〜〜〜
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
//付け加えた文
|
122
|
+
|
123
|
+
@Override
|
124
|
+
|
125
|
+
protected void onCreate(Bundle savedInstanceState) {
|
126
|
+
|
127
|
+
super.onCreate(savedInstanceState);
|
128
|
+
|
129
|
+
setContentView(R.layout.login);
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
Button sendButton = findViewById(R.id.sign_up_button);
|
134
|
+
|
135
|
+
sendButton.setOnClickListener(new View.OnClickListener() {
|
136
|
+
|
137
|
+
@Override
|
138
|
+
|
139
|
+
public void onClick(View v) {
|
140
|
+
|
141
|
+
Intent intent = new Intent(getApplication(), Signup.class);
|
142
|
+
|
143
|
+
startActivity(intent);
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
});
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
```
|
168
|
+
|
169
|
+
|
170
|
+
|
33
171
|
```java
|
34
172
|
|
173
|
+
//新規会員画面
|
174
|
+
|
35
|
-
【
|
175
|
+
【Signup.java】
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
176
|
+
|
40
|
-
|
41
|
-
|
177
|
+
|
42
|
-
|
43
|
-
|
178
|
+
|
44
|
-
|
45
|
-
public class
|
179
|
+
public class Signup extends AppCompatActivity {
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
/**
|
50
|
-
|
51
|
-
* Id to identity READ_CONTACTS permission request.
|
52
|
-
|
53
|
-
*/
|
54
|
-
|
55
|
-
private static final int REQUEST_READ_CONTACTS = 0;
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
/**
|
60
|
-
|
61
|
-
* A dummy authentication store containing known user names and passwords.
|
62
|
-
|
63
|
-
* TODO: remove after connecting to a real authentication system.
|
64
|
-
|
65
|
-
*/
|
66
|
-
|
67
|
-
private static final String[] DUMMY_CREDENTIALS = new String[]{
|
68
|
-
|
69
|
-
"foo@example.com:hello", "bar@example.com:world"
|
70
|
-
|
71
|
-
};
|
72
|
-
|
73
|
-
/**
|
74
|
-
|
75
|
-
* Keep track of the login task to ensure we can cancel it if requested.
|
76
|
-
|
77
|
-
*/
|
78
|
-
|
79
|
-
private UserLoginTask mAuthTask = null;
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
// UI references.
|
84
|
-
|
85
|
-
private AutoCompleteTextView mEmailView;
|
86
|
-
|
87
|
-
private EditText mPasswordView;
|
88
|
-
|
89
|
-
private View mProgressView;
|
90
|
-
|
91
|
-
private View mLoginFormView;
|
92
180
|
|
93
181
|
|
94
182
|
|
@@ -98,63 +186,7 @@
|
|
98
186
|
|
99
187
|
super.onCreate(savedInstanceState);
|
100
188
|
|
101
|
-
setContentView(R.layout.
|
189
|
+
setContentView(R.layout.signup);
|
102
|
-
|
103
|
-
// Set up the login form.
|
104
|
-
|
105
|
-
mEmailView = (AutoCompleteTextView) findViewById(R.id.email);
|
106
|
-
|
107
|
-
populateAutoComplete();
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
〜〜〜〜〜略〜〜〜〜〜〜〜〜〜〜
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
//付け加えた文
|
128
|
-
|
129
|
-
@Override
|
130
|
-
|
131
|
-
protected void onCreate(Bundle savedInstanceState) {
|
132
|
-
|
133
|
-
super.onCreate(savedInstanceState);
|
134
|
-
|
135
|
-
setContentView(R.layout.login);
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
Button sendButton = findViewById(R.id.sign_up_button);
|
140
|
-
|
141
|
-
sendButton.setOnClickListener(new View.OnClickListener() {
|
142
|
-
|
143
|
-
@Override
|
144
|
-
|
145
|
-
public void onClick(View v) {
|
146
|
-
|
147
|
-
Intent intent = new Intent(getApplication(), Signup.class);
|
148
|
-
|
149
|
-
startActivity(intent);
|
150
|
-
|
151
|
-
}
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
});
|
156
|
-
|
157
|
-
}
|
158
190
|
|
159
191
|
}
|
160
192
|
|
@@ -162,44 +194,6 @@
|
|
162
194
|
|
163
195
|
|
164
196
|
|
165
|
-
}
|
166
|
-
|
167
|
-
}
|
168
|
-
|
169
|
-
}
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
```
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
```java
|
178
|
-
|
179
|
-
//新規会員画面
|
180
|
-
|
181
|
-
【Signup.java】
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
public class Signup extends AppCompatActivity {
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
@Override
|
190
|
-
|
191
|
-
protected void onCreate(Bundle savedInstanceState) {
|
192
|
-
|
193
|
-
super.onCreate(savedInstanceState);
|
194
|
-
|
195
|
-
setContentView(R.layout.signup);
|
196
|
-
|
197
|
-
}
|
198
|
-
|
199
|
-
}
|
200
|
-
|
201
|
-
|
202
|
-
|
203
197
|
|
204
198
|
|
205
199
|
|
1
付け加え文編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,20 +126,46 @@
|
|
126
126
|
|
127
127
|
//付け加えた文
|
128
128
|
|
129
|
+
@Override
|
130
|
+
|
131
|
+
protected void onCreate(Bundle savedInstanceState) {
|
132
|
+
|
133
|
+
super.onCreate(savedInstanceState);
|
134
|
+
|
135
|
+
setContentView(R.layout.login);
|
136
|
+
|
137
|
+
|
138
|
+
|
129
|
-
Button sendButton = findViewById(R.id.sign_up_button);
|
139
|
+
Button sendButton = findViewById(R.id.sign_up_button);
|
130
|
-
|
140
|
+
|
131
|
-
sendButton.setOnClickListener(new View.OnClickListener()
|
141
|
+
sendButton.setOnClickListener(new View.OnClickListener() {
|
142
|
+
|
132
|
-
|
143
|
+
@Override
|
144
|
+
|
133
|
-
public void onClick
|
145
|
+
public void onClick(View v) {
|
134
|
-
|
146
|
+
|
135
|
-
Intent intent = new Intent(getApplication(), Signup.class);
|
147
|
+
Intent intent = new Intent(getApplication(), Signup.class);
|
136
|
-
|
148
|
+
|
137
|
-
startActivity(intent);
|
149
|
+
startActivity(intent);
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
});
|
138
156
|
|
139
157
|
}
|
140
158
|
|
159
|
+
}
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
|
141
165
|
}
|
142
166
|
|
167
|
+
}
|
168
|
+
|
143
169
|
}
|
144
170
|
|
145
171
|
|