質問編集履歴

1

ソースコードを移動

2019/03/13 02:34

投稿

yamada121
yamada121

スコア13

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,427 @@
52
52
 
53
53
  ```ここに言語名を入力
54
54
 
55
+ if(text.equals(" 1番"))
56
+
57
+ {
58
+
59
+
60
+
61
+
62
+
63
+ }
64
+
65
+ else if(text.equals(" 2番"))
66
+
67
+ {
68
+
69
+ Context context = null;
70
+
71
+ String url =context.getFilesDir().getPath() + "\m1-10";
72
+
55
- ソースコード
73
+ try {
74
+
75
+ mediaplayer.setDataSource(url);
76
+
77
+ } catch (IOException e) {
78
+
79
+ e.printStackTrace();
80
+
81
+ }
82
+
83
+ try {
84
+
85
+ mediaplayer.prepare();
86
+
87
+ } catch (IOException e) {
88
+
89
+ e.printStackTrace();
90
+
91
+ }
92
+
93
+ mediaplayer.start();
94
+
95
+
96
+
97
+ }
98
+
99
+ else if(text.equals(" 3番"))
100
+
101
+ {
102
+
103
+ Context context = null;
104
+
105
+ String url =context.getFilesDir().getPath() + "\m1-10.mp3";
106
+
107
+ try {
108
+
109
+ mediaplayer.setDataSource(url);
110
+
111
+ } catch (IOException e) {
112
+
113
+ e.printStackTrace();
114
+
115
+ }
116
+
117
+ try {
118
+
119
+ mediaplayer.prepare();
120
+
121
+ } catch (IOException e) {
122
+
123
+ e.printStackTrace();
124
+
125
+ }
126
+
127
+ mediaplayer.start();
128
+
129
+
130
+
131
+ }
132
+
133
+ else if(text.equals(" 4番"))
134
+
135
+ {
136
+
137
+ Context context = null;
138
+
139
+ String url =context.getFilesDir().getPath() + "m1-10.mp3";
140
+
141
+ try {
142
+
143
+ mediaplayer.setDataSource(url);
144
+
145
+ } catch (IOException e) {
146
+
147
+ e.printStackTrace();
148
+
149
+ }
150
+
151
+ try {
152
+
153
+ mediaplayer.prepare();
154
+
155
+ } catch (IOException e) {
156
+
157
+ e.printStackTrace();
158
+
159
+ }
160
+
161
+ mediaplayer.start();
162
+
163
+
164
+
165
+ }
166
+
167
+ else if(text.equals(" 5番"))
168
+
169
+ {
170
+
171
+ Context context = null;
172
+
173
+ String url =context.getFilesDir().getPath() + "m1-10";
174
+
175
+ try {
176
+
177
+ mediaplayer.setDataSource(url);
178
+
179
+ } catch (IOException e) {
180
+
181
+ e.printStackTrace();
182
+
183
+ }
184
+
185
+ try {
186
+
187
+ mediaplayer.prepare();
188
+
189
+ } catch (IOException e) {
190
+
191
+ e.printStackTrace();
192
+
193
+ }
194
+
195
+ mediaplayer.start();
196
+
197
+
198
+
199
+ }
200
+
201
+ else if(text.equals(" 6番"))
202
+
203
+ {
204
+
205
+ String url = "m1-10";
206
+
207
+
208
+
209
+ try {
210
+
211
+ mediaplayer.setDataSource(url);
212
+
213
+ } catch (IOException e) {
214
+
215
+ e.printStackTrace();
216
+
217
+ }
218
+
219
+ try {
220
+
221
+ mediaplayer.prepare();
222
+
223
+ } catch (IOException e) {
224
+
225
+ e.printStackTrace();
226
+
227
+ }
228
+
229
+ mediaplayer.start();
230
+
231
+ }
232
+
233
+ else if(text.equals(" 7番"))
234
+
235
+ {
236
+
237
+ String url = "m1-10.mp3";
238
+
239
+
240
+
241
+ try {
242
+
243
+ mediaplayer.setDataSource(url);
244
+
245
+ } catch (IOException e) {
246
+
247
+ e.printStackTrace();
248
+
249
+ }
250
+
251
+ try {
252
+
253
+ mediaplayer.prepare();
254
+
255
+ } catch (IOException e) {
256
+
257
+ e.printStackTrace();
258
+
259
+ }
260
+
261
+ mediaplayer.start();
262
+
263
+ }
264
+
265
+ else if(text.equals(" 8番"))
266
+
267
+ {
268
+
269
+ mediaplayer = MediaPlayer.create(this, getmusicId(this,"m1-10.mp3"));
270
+
271
+ mediaplayer.start();
272
+
273
+ }
274
+
275
+ else if(text.equals(" 9番"))
276
+
277
+ {
278
+
279
+
280
+
281
+ }
282
+
283
+ else if(text.equals("10番"))
284
+
285
+ {
286
+
287
+
288
+
289
+ }
290
+
291
+ else if(text.equals("11番"))
292
+
293
+ {
294
+
295
+ mediaplayer = MediaPlayer.create(this, getmusicId2(this,"m1-10"));
296
+
297
+ mediaplayer.start();
298
+
299
+ }
300
+
301
+ else if(text.equals("12番"))
302
+
303
+ {
304
+
305
+ mediaplayer = MediaPlayer.create(this, getmusicId2(this,"m1-10.mp3"));
306
+
307
+ mediaplayer.start();
308
+
309
+ }
310
+
311
+ else if(text.equals("13番"))
312
+
313
+ {
314
+
315
+
316
+
317
+ }
318
+
319
+ else if(text.equals("14番"))
320
+
321
+ {
322
+
323
+
324
+
325
+ }
326
+
327
+ else if(text.equals("15番"))
328
+
329
+ {
330
+
331
+ mediaplayer = MediaPlayer.create(this, getmusicId2(this,getFilesDir() + "m1-10"));
332
+
333
+ mediaplayer.start();
334
+
335
+ }
336
+
337
+ else if(text.equals("16番"))
338
+
339
+ {
340
+
341
+ mediaplayer = MediaPlayer.create(this, getmusicId2(this,getFilesDir() + "m1-10.mp3"));
342
+
343
+ mediaplayer.start();
344
+
345
+ }
346
+
347
+ else if(text.equals("17番"))
348
+
349
+ {
350
+
351
+ Context context = null;
352
+
353
+ String url =context.getFilesDir().getPath() + "m1-10";
354
+
355
+ try {
356
+
357
+ mediaplayer.setDataSource(url);
358
+
359
+ } catch (IOException e) {
360
+
361
+ e.printStackTrace();
362
+
363
+ }
364
+
365
+ try {
366
+
367
+ mediaplayer.prepare();
368
+
369
+ } catch (IOException e) {
370
+
371
+ e.printStackTrace();
372
+
373
+ }
374
+
375
+ mediaplayer.start();
376
+
377
+ }
378
+
379
+ else if(text.equals("18番"))
380
+
381
+ {
382
+
383
+ Context context = null;
384
+
385
+ String url =context.getFilesDir().getPath() + "m1-10.mp3";
386
+
387
+ try {
388
+
389
+ mediaplayer.setDataSource(url);
390
+
391
+ } catch (IOException e) {
392
+
393
+ e.printStackTrace();
394
+
395
+ }
396
+
397
+ try {
398
+
399
+ mediaplayer.prepare();
400
+
401
+ } catch (IOException e) {
402
+
403
+ e.printStackTrace();
404
+
405
+ }
406
+
407
+ mediaplayer.start();
408
+
409
+ }
410
+
411
+ else if(text.equals("19番"))
412
+
413
+ {
414
+
415
+ Context context = null;
416
+
417
+ String url =context.getFilesDir().getPath() + "/m1-10";
418
+
419
+ try {
420
+
421
+ mediaplayer.setDataSource(url);
422
+
423
+ } catch (IOException e) {
424
+
425
+ e.printStackTrace();
426
+
427
+ }
428
+
429
+ try {
430
+
431
+ mediaplayer.prepare();
432
+
433
+ } catch (IOException e) {
434
+
435
+ e.printStackTrace();
436
+
437
+ }
438
+
439
+ mediaplayer.start();
440
+
441
+ }
442
+
443
+ else if(text.equals("20番"))
444
+
445
+ {
446
+
447
+ Context context = null;
448
+
449
+ String url =context.getFilesDir().getPath() + "/m1-10.mp3";
450
+
451
+ try {
452
+
453
+ mediaplayer.setDataSource(url);
454
+
455
+ } catch (IOException e) {
456
+
457
+ e.printStackTrace();
458
+
459
+ }
460
+
461
+ try {
462
+
463
+ mediaplayer.prepare();
464
+
465
+ } catch (IOException e) {
466
+
467
+ e.printStackTrace();
468
+
469
+ }
470
+
471
+ mediaplayer.start();
472
+
473
+ }
474
+
475
+
56
476
 
57
477
  ```
58
478
 
@@ -62,426 +482,6 @@
62
482
 
63
483
 
64
484
 
65
- if(text.equals(" 1番"))
66
-
67
- {
68
-
69
-
70
-
71
-
72
-
73
- }
74
-
75
- else if(text.equals(" 2番"))
76
-
77
- {
78
-
79
- Context context = null;
80
-
81
- String url =context.getFilesDir().getPath() + "\m1-10";
82
-
83
- try {
84
-
85
- mediaplayer.setDataSource(url);
86
-
87
- } catch (IOException e) {
88
-
89
- e.printStackTrace();
90
-
91
- }
92
-
93
- try {
94
-
95
- mediaplayer.prepare();
96
-
97
- } catch (IOException e) {
98
-
99
- e.printStackTrace();
100
-
101
- }
102
-
103
- mediaplayer.start();
104
-
105
-
106
-
107
- }
108
-
109
- else if(text.equals(" 3番"))
110
-
111
- {
112
-
113
- Context context = null;
114
-
115
- String url =context.getFilesDir().getPath() + "\m1-10.mp3";
116
-
117
- try {
118
-
119
- mediaplayer.setDataSource(url);
120
-
121
- } catch (IOException e) {
122
-
123
- e.printStackTrace();
124
-
125
- }
126
-
127
- try {
128
-
129
- mediaplayer.prepare();
130
-
131
- } catch (IOException e) {
132
-
133
- e.printStackTrace();
134
-
135
- }
136
-
137
- mediaplayer.start();
138
-
139
-
140
-
141
- }
142
-
143
- else if(text.equals(" 4番"))
144
-
145
- {
146
-
147
- Context context = null;
148
-
149
- String url =context.getFilesDir().getPath() + "m1-10.mp3";
150
-
151
- try {
152
-
153
- mediaplayer.setDataSource(url);
154
-
155
- } catch (IOException e) {
156
-
157
- e.printStackTrace();
158
-
159
- }
160
-
161
- try {
162
-
163
- mediaplayer.prepare();
164
-
165
- } catch (IOException e) {
166
-
167
- e.printStackTrace();
168
-
169
- }
170
-
171
- mediaplayer.start();
172
-
173
-
174
-
175
- }
176
-
177
- else if(text.equals(" 5番"))
178
-
179
- {
180
-
181
- Context context = null;
182
-
183
- String url =context.getFilesDir().getPath() + "m1-10";
184
-
185
- try {
186
-
187
- mediaplayer.setDataSource(url);
188
-
189
- } catch (IOException e) {
190
-
191
- e.printStackTrace();
192
-
193
- }
194
-
195
- try {
196
-
197
- mediaplayer.prepare();
198
-
199
- } catch (IOException e) {
200
-
201
- e.printStackTrace();
202
-
203
- }
204
-
205
- mediaplayer.start();
206
-
207
-
208
-
209
- }
210
-
211
- else if(text.equals(" 6番"))
212
-
213
- {
214
-
215
- String url = "m1-10";
216
-
217
-
218
-
219
- try {
220
-
221
- mediaplayer.setDataSource(url);
222
-
223
- } catch (IOException e) {
224
-
225
- e.printStackTrace();
226
-
227
- }
228
-
229
- try {
230
-
231
- mediaplayer.prepare();
232
-
233
- } catch (IOException e) {
234
-
235
- e.printStackTrace();
236
-
237
- }
238
-
239
- mediaplayer.start();
240
-
241
- }
242
-
243
- else if(text.equals(" 7番"))
244
-
245
- {
246
-
247
- String url = "m1-10.mp3";
248
-
249
-
250
-
251
- try {
252
-
253
- mediaplayer.setDataSource(url);
254
-
255
- } catch (IOException e) {
256
-
257
- e.printStackTrace();
258
-
259
- }
260
-
261
- try {
262
-
263
- mediaplayer.prepare();
264
-
265
- } catch (IOException e) {
266
-
267
- e.printStackTrace();
268
-
269
- }
270
-
271
- mediaplayer.start();
272
-
273
- }
274
-
275
- else if(text.equals(" 8番"))
276
-
277
- {
278
-
279
- mediaplayer = MediaPlayer.create(this, getmusicId(this,"m1-10.mp3"));
280
-
281
- mediaplayer.start();
282
-
283
- }
284
-
285
- else if(text.equals(" 9番"))
286
-
287
- {
288
-
289
-
290
-
291
- }
292
-
293
- else if(text.equals("10番"))
294
-
295
- {
296
-
297
-
298
-
299
- }
300
-
301
- else if(text.equals("11番"))
302
-
303
- {
304
-
305
- mediaplayer = MediaPlayer.create(this, getmusicId2(this,"m1-10"));
306
-
307
- mediaplayer.start();
308
-
309
- }
310
-
311
- else if(text.equals("12番"))
312
-
313
- {
314
-
315
- mediaplayer = MediaPlayer.create(this, getmusicId2(this,"m1-10.mp3"));
316
-
317
- mediaplayer.start();
318
-
319
- }
320
-
321
- else if(text.equals("13番"))
322
-
323
- {
324
-
325
-
326
-
327
- }
328
-
329
- else if(text.equals("14番"))
330
-
331
- {
332
-
333
-
334
-
335
- }
336
-
337
- else if(text.equals("15番"))
338
-
339
- {
340
-
341
- mediaplayer = MediaPlayer.create(this, getmusicId2(this,getFilesDir() + "m1-10"));
342
-
343
- mediaplayer.start();
344
-
345
- }
346
-
347
- else if(text.equals("16番"))
348
-
349
- {
350
-
351
- mediaplayer = MediaPlayer.create(this, getmusicId2(this,getFilesDir() + "m1-10.mp3"));
352
-
353
- mediaplayer.start();
354
-
355
- }
356
-
357
- else if(text.equals("17番"))
358
-
359
- {
360
-
361
- Context context = null;
362
-
363
- String url =context.getFilesDir().getPath() + "m1-10";
364
-
365
- try {
366
-
367
- mediaplayer.setDataSource(url);
368
-
369
- } catch (IOException e) {
370
-
371
- e.printStackTrace();
372
-
373
- }
374
-
375
- try {
376
-
377
- mediaplayer.prepare();
378
-
379
- } catch (IOException e) {
380
-
381
- e.printStackTrace();
382
-
383
- }
384
-
385
- mediaplayer.start();
386
-
387
- }
388
-
389
- else if(text.equals("18番"))
390
-
391
- {
392
-
393
- Context context = null;
394
-
395
- String url =context.getFilesDir().getPath() + "m1-10.mp3";
396
-
397
- try {
398
-
399
- mediaplayer.setDataSource(url);
400
-
401
- } catch (IOException e) {
402
-
403
- e.printStackTrace();
404
-
405
- }
406
-
407
- try {
408
-
409
- mediaplayer.prepare();
410
-
411
- } catch (IOException e) {
412
-
413
- e.printStackTrace();
414
-
415
- }
416
-
417
- mediaplayer.start();
418
-
419
- }
420
-
421
- else if(text.equals("19番"))
422
-
423
- {
424
-
425
- Context context = null;
426
-
427
- String url =context.getFilesDir().getPath() + "/m1-10";
428
-
429
- try {
430
-
431
- mediaplayer.setDataSource(url);
432
-
433
- } catch (IOException e) {
434
-
435
- e.printStackTrace();
436
-
437
- }
438
-
439
- try {
440
-
441
- mediaplayer.prepare();
442
-
443
- } catch (IOException e) {
444
-
445
- e.printStackTrace();
446
-
447
- }
448
-
449
- mediaplayer.start();
450
-
451
- }
452
-
453
- else if(text.equals("20番"))
454
-
455
- {
456
-
457
- Context context = null;
458
-
459
- String url =context.getFilesDir().getPath() + "/m1-10.mp3";
460
-
461
- try {
462
-
463
- mediaplayer.setDataSource(url);
464
-
465
- } catch (IOException e) {
466
-
467
- e.printStackTrace();
468
-
469
- }
470
-
471
- try {
472
-
473
- mediaplayer.prepare();
474
-
475
- } catch (IOException e) {
476
-
477
- e.printStackTrace();
478
-
479
- }
480
-
481
- mediaplayer.start();
482
-
483
- }
484
-
485
485
 
486
486
 
487
487
  ### 補足情報(FW/ツールのバージョンなど)