Thursday, April 17, 2014

Why do AlertDialog.Builder second time will stop working


Why do AlertDialog.Builder second time will stop working
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
passwordText = new AlertDialog.Builder (this);
passwordText.setTitle ("Please enter your password");
passwordText.setView (new EditText (getApplicationContext ()));

passwordText.setPositiveButton ("OK", null);
passwordText.setNegativeButton ("Cancel", null);
The above is the code, I will call in the next code passwordText.show (), when the first call is no problem, when the second call will stop working.
Reply:
There are great God reply? Do not smack of less!
Reply:
Someone reply?
Reply:
Report what is wrong with it? See log yet?
Reply:
references, 4th Floor guoyoulei520 reply:
report log to see what is wrong with it yet
I was running directly on the real machine?? direct program unexpectedly stopped, because it involves wifi. Only run on a real machine, I get Junit now alone in the piece under test, to see what is wrong newspaper,
Reply:
references, 4th Floor guoyoulei520 reply:??
report log to see what is wrong with it yet
Junit in or not in the test , because the incoming context can create components,,,
Reply:
references, 4th Floor guoyoulei520 reply:?
report log to see what is wrong with it yet
find the error log, java?. lang.RuntimeException: Unable to start activity ComponentInfo {cn.king ****.}
Reply:
Khan, the log can not understand God, you want a little more interception
Reply:
Dude do you solve this problem, I have encountered this problem, find solutions

No comments:

Post a Comment