Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dialog does not show() the 2nd time immediately after hide() / dismiss()
- public void onResume(){
- super.onResume();
- ...
- // initialize the dialog
- mWaitingDialog = new WaitingDialog(getActivity());
- ...
- }
- public class WaitingDialog extends ProgressDialog {
- public WaitingDialog(Context context) {
- super(context);
- setMessage(context.getText(R.string.searching));
- setIndeterminate(true);
- setCancelable(true);
- }
- }
- mWaitingDialog.hide();
- private void performGeolocationRequest(EditText v) {
- mWaitingDialog.show();
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment