teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

builder\.create\(\)\.show\(\);の追加と、ログの修正

2017/05/06 13:58

投稿

edoooooo
edoooooo

スコア478

title CHANGED
File without changes
body CHANGED
@@ -11,23 +11,23 @@
11
11
 
12
12
  LayoutInflater inflater = (LayoutInflater)this.getSystemService(
13
13
  LAYOUT_INFLATER_SERVICE);
14
- System.out.println("aaaaaaaaaaaaaaaあああああああああ”");
14
+ System.out.println("どこまでコードが動いているかを確かめるログ1");
15
15
  final View layout =inflater.inflate(R.layout.dialog_updateplace_us,(ViewGroup)findViewById(R.id.layout_updateplace));
16
- System.out.println("aaaaaaaaaaaaaaaいいいいいいいいい");
16
+ System.out.println("どこまでコードが動るかを確かめるログ2");
17
17
 
18
18
 
19
19
  // アラーとダイアログ を生成
20
20
  AlertDialog.Builder builder = new AlertDialog.Builder(LocationActivity.this);
21
21
  // builder.setTitle("ユーザー名とパスワードを入力してください");
22
22
  builder.setView(layout);
23
- System.out.println("aaaaaaaaaaaaaaaううううううううううううううううう");
23
+ System.out.println("どこまでコードが動いているかを確かめるログ3");
24
24
 
25
25
 
26
26
  builder.setPositiveButton("名称変更", new DialogInterface.OnClickListener() {
27
27
  public void onClick(DialogInterface dialog, int which) {
28
28
 
29
29
 
30
- System.out.println("aaaaaaaええええええええええええええ");
30
+ System.out.println("どこまでコードが動いているかを確かめるログ4");
31
31
  EditText updateplace2 = (EditText) layout.findViewById(R.id.updateplace);
32
32
 
33
33
  String updateplace = updateplace2.getText().toString();
@@ -84,6 +84,7 @@
84
84
 
85
85
  });
86
86
 
87
+ builder.create().show();
87
88
  return super.onOptionsItemSelected(item);
88
89
 
89
90
 

1

追加

2017/05/06 13:58

投稿

edoooooo
edoooooo

スコア478

title CHANGED
File without changes
body CHANGED
@@ -2,6 +2,7 @@
2
2
  アドバイスをいただけないでしょうか?
3
3
  2時間ほど探しても解決してない状況です。
4
4
  どうぞよろしくお願いします。
5
+ LocationActivityでは、Logで出力すると、ああああ、いいいい、うううう、は出力されますが、ええええ、は出力されませんでした。しかしなぜ、それが出力されないのががわかりません。どうぞよろしくお願いします。
5
6
  ```java
6
7
  //LocationActivity.java
7
8