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:
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:
Junit in or not in the test , because the incoming context can create components,,,
Reply:
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