大约有 1,593 项符合查询结果(耗时:0.0109秒) [XML]
android View not attached to window manager
...ation change, the activity finished before the AsyncTask with the progress dialog completed. I seemed to resolve this by setting the dialog to null onPause() and then checking this in the AsyncTask before dismissing.
@Override
public void onPause() {
super.onPause();
if ((mDialog != null)...
Choose File Dialog [closed]
Does anyone know of a complete choose file dialog? Maybe one where you can filter out all files except for ones with specific extensions?
...
How to handle screen orientation change when progress dialog and background thread active?
...rk activity in a background thread. Before starting, it pops up a progress dialog. The dialog is dismissed on the handler. This all works fine, except when screen orientation changes while the dialog is up (and the background thread is going). At this point the app either crashes, or deadlocks, or g...
when using AlertDialog.Builder with EditText, the Soft Keyboard doesn't pop
I am using AlertDialog.Builder in order to create an input box, with EditText as the input method.
12 Answers
...
How set maximum date in datepicker dialog in android?
...
Use setMaxDate().
For example, replace return new DatePickerDialog(this, pDateSetListener, pYear, pMonth, pDay) statement with something like this:
DatePickerDialog dialog = new DatePickerDialog(this, pDateSetListener, pYear, pMonth, pDay);
dialog.getDatePicker().setMaxDate(n...
passing argument to DialogFragment
I need to pass some variables to DialogFragment , so I can perform an action. Eclipse suggests that I should use
6 Answers...
Check if a dialog is displayed with Espresso
...t-kit (Espresso) . But I can't find any information on how to check if a dialog is displayed and perform some actions on it (like clicking the positive and negative buttons, e.t.c.). Note that a dialog may be also displayed by a WebView , not by the application it self.
...
“android.view.WindowManager$BadTokenException: Unable to add window” on buider.show()
...call an inner class and in a method within the class, I need to show AlertDialog . After dismissing it, when the OK button is pressed, forward to Google Play for purchase.
...
Android: show soft keyboard automatically when focus is on an EditText
I'm showing an input box using AlertDialog . The EditText inside the dialog itself is automatically focused when I call AlertDialog.show() , but the soft keyboard is not automatically shown.
...
Yes or No confirm box using jQuery
...
ConfirmDialog('Are you sure');
function ConfirmDialog(message) {
$('<div></div>').appendTo('body')
.html('<div><h6>' + message + '?</h6></div>')
.dialog({
modal: true,
...
