質問編集履歴
3
logcatの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -390,4 +390,28 @@
|
|
390
390
|
|
391
391
|
```
|
392
392
|
|
393
|
+
```logcat
|
394
|
+
|
395
|
+
2019-02-09 10:40:20.272 604-617/system_process D/Sensors: batch handle 6, but there is no batch sensor in genymotion
|
396
|
+
|
397
|
+
2019-02-09 10:40:20.279 604-827/system_process D/Sensors: batch handle 1, but there is no batch sensor in genymotion
|
398
|
+
|
399
|
+
2019-02-09 10:40:20.282 604-649/system_process D/PressureSensor: pressure event 1013.000000
|
400
|
+
|
401
|
+
2019-02-09 10:40:21.273 604-670/system_process W/WifiMode: WiredSSID, Invalid SupportedRates!!!
|
402
|
+
|
403
|
+
2019-02-09 10:40:21.273 604-672/system_process W/WifiMode: WiredSSID, Invalid SupportedRates!!!
|
404
|
+
|
405
|
+
2019-02-09 10:40:21.274 604-670/system_process W/WifiMode: WiredSSID, Invalid SupportedRates!!!
|
406
|
+
|
407
|
+
2019-02-09 10:40:21.777 604-2123/system_process D/Sensors: batch handle 1, but there is no batch sensor in genymotion
|
408
|
+
|
409
|
+
2019-02-09 10:41:43.460 604-618/system_process D/Sensors: batch handle 6, but there is no batch sensor in genymotion
|
410
|
+
|
411
|
+
2019-02-09 10:41:43.470 604-649/system_process D/PressureSensor: pressure event 1013.000000
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
```
|
416
|
+
|
393
417
|
![](a59f123de0abbdc6212c5ced33bfe9fd.png)
|
2
写真の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -389,3 +389,5 @@
|
|
389
389
|
}
|
390
390
|
|
391
391
|
```
|
392
|
+
|
393
|
+
![](a59f123de0abbdc6212c5ced33bfe9fd.png)
|
1
追加しました
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
インターネットアプリが
|
1
|
+
自作インターネットアプリが「停止しました」と表示されて起動できない
|
test
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
アプリが落ちるところが、分かりません。
|
2
|
-
|
3
1
|
ご指摘お願いします。
|
4
2
|
|
5
3
|
```java
|
@@ -8,8 +6,12 @@
|
|
8
6
|
|
9
7
|
|
10
8
|
|
9
|
+
import android.app.AlertDialog;
|
10
|
+
|
11
11
|
import android.app.DownloadManager;
|
12
12
|
|
13
|
+
import android.content.DialogInterface;
|
14
|
+
|
13
15
|
import android.content.Intent;
|
14
16
|
|
15
17
|
import android.net.Uri;
|
@@ -22,6 +24,8 @@
|
|
22
24
|
|
23
25
|
import android.text.SpannableStringBuilder;
|
24
26
|
|
27
|
+
import android.util.Log;
|
28
|
+
|
25
29
|
import android.view.KeyEvent;
|
26
30
|
|
27
31
|
import android.view.View;
|
@@ -242,6 +246,46 @@
|
|
242
246
|
|
243
247
|
} else {
|
244
248
|
|
249
|
+
AlertDialog.Builder alertDialog=new AlertDialog.Builder(this);
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
// ダイアログの設定
|
254
|
+
|
255
|
+
alertDialog.setTitle("確認"); //タイトル設定
|
256
|
+
|
257
|
+
alertDialog.setMessage("終了しますか?"); //内容(メッセージ)設定
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
// OK(肯定的な)ボタンの設定
|
262
|
+
|
263
|
+
alertDialog.setPositiveButton("はい", new DialogInterface.OnClickListener() {
|
264
|
+
|
265
|
+
public void onClick(DialogInterface dialog, int which) {
|
266
|
+
|
267
|
+
finishAndRemoveTask();
|
268
|
+
|
269
|
+
}
|
270
|
+
|
271
|
+
});
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
alertDialog.setNeutralButton("いいえ", new DialogInterface.OnClickListener() {
|
276
|
+
|
277
|
+
public void onClick(DialogInterface dialog, int which) {
|
278
|
+
|
279
|
+
}
|
280
|
+
|
281
|
+
});
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
alertDialog.show();
|
288
|
+
|
245
289
|
|
246
290
|
|
247
291
|
}
|