質問編集履歴
3
コードの訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -84,6 +84,24 @@
|
|
84
84
|
|
85
85
|
|
86
86
|
|
87
|
+
|
88
|
+
|
89
|
+
Button button2 = (Button) findViewById(R.id.button2);
|
90
|
+
|
91
|
+
button2.setOnClickListener(new View.OnClickListener() {
|
92
|
+
|
93
|
+
@Override
|
94
|
+
|
95
|
+
public void onClick(View v) {
|
96
|
+
|
97
|
+
// ボタンクリックしたときの処理
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
});
|
104
|
+
|
87
105
|
}
|
88
106
|
|
89
107
|
|
@@ -298,27 +316,7 @@
|
|
298
316
|
|
299
317
|
}
|
300
318
|
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
Button button2 = (Button) findViewById(R.id.button2);
|
306
|
-
|
307
|
-
button2.setOnClickListener(new View.OnClickListener() {
|
308
|
-
|
309
|
-
@Override
|
310
|
-
|
311
|
-
public void onClick(View v) {
|
312
|
-
|
313
|
-
// ボタンクリックしたときの処理
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
319
|
+
}
|
318
|
-
|
319
|
-
});
|
320
|
-
|
321
|
-
}
|
322
320
|
|
323
321
|
```XML
|
324
322
|
|
2
コードの変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -298,39 +298,33 @@
|
|
298
298
|
|
299
299
|
}
|
300
300
|
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
Button button2 = (Button) findViewById(R.id.button2);
|
306
|
+
|
307
|
+
button2.setOnClickListener(new View.OnClickListener() {
|
308
|
+
|
309
|
+
@Override
|
310
|
+
|
311
|
+
public void onClick(View v) {
|
312
|
+
|
313
|
+
// ボタンクリックしたときの処理
|
314
|
+
|
315
|
+
|
316
|
+
|
301
|
-
}
|
317
|
+
}
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
318
|
+
|
306
|
-
|
307
|
-
class Button extends AppCompatActivity {
|
308
|
-
|
309
|
-
|
319
|
+
});
|
310
|
-
|
311
|
-
|
320
|
+
|
312
|
-
|
313
|
-
super.onCreate(savedInstanceState);
|
314
|
-
|
315
|
-
setContentView(R.layout.activity_main);
|
316
|
-
|
317
|
-
}
|
321
|
+
}
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
+
|
322
|
-
|
323
|
-
Intent intent = new Intent(this,MainActivity.class);
|
324
|
-
|
325
|
-
startActivity(intent);
|
326
|
-
|
327
|
-
}
|
328
|
-
|
329
|
-
}
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
323
|
+
```XML
|
324
|
+
|
325
|
+
コード
|
326
|
+
|
327
|
+
```XML
|
334
328
|
|
335
329
|
<?xml version="1.0" encoding="utf-8"?>
|
336
330
|
|
@@ -348,6 +342,14 @@
|
|
348
342
|
|
349
343
|
|
350
344
|
|
345
|
+
LinearLayout ll = new LinearLayout(this);
|
346
|
+
|
347
|
+
tv = new TextView(this);
|
348
|
+
|
349
|
+
ll.addView(tv);
|
350
|
+
|
351
|
+
|
352
|
+
|
351
353
|
<TextView
|
352
354
|
|
353
355
|
android:id="@+id/textView"
|
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,9 @@
|
|
6
6
|
|
7
7
|
###発生している問題・エラーメッセージ
|
8
8
|
|
9
|
-
|
9
|
+
エラーはないんですけど、CSVで保存するときに時刻も一緒に保存したい。
|
10
|
+
|
11
|
+
start stop ボタンが表示されない。
|
10
12
|
|
11
13
|
|
12
14
|
|
@@ -16,9 +18,7 @@
|
|
16
18
|
|
17
19
|
Javaなど
|
18
20
|
|
19
|
-
|
21
|
+
```ここに言語を入力
|
20
|
-
|
21
|
-
|
22
22
|
|
23
23
|
public class MainActivity extends AppCompatActivity implements Runnable, SensorEventListener {
|
24
24
|
|
@@ -444,6 +444,12 @@
|
|
444
444
|
|
445
445
|
|
446
446
|
|
447
|
+
```
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
447
453
|
###試したこと
|
448
454
|
|
449
455
|
課題に対してアプローチしたことを記載してください
|