use of android.app.ProgressDialog in project musicbrainz-android by jdamcd.
the class AuthenticatingDialog method onCreateDialog.
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
ProgressDialog dialog = new ProgressDialog(getActivity());
dialog.setMessage(getMessage());
dialog.setCancelable(true);
return dialog;
}
use of android.app.ProgressDialog in project SeriesGuide by UweTrottmann.
the class SearchActivity method showProgressDialog.
private void showProgressDialog() {
if (progressDialog == null) {
progressDialog = new ProgressDialog(this);
progressDialog.setCancelable(false);
}
progressDialog.show();
}
use of android.app.ProgressDialog in project FileExplorer by MiCode.
the class FileViewInteractionHub method showProgress.
private void showProgress(String msg) {
progressDialog = new ProgressDialog(mContext);
// dialog.setIcon(R.drawable.icon);
progressDialog.setMessage(msg);
progressDialog.setIndeterminate(true);
progressDialog.setCancelable(false);
progressDialog.show();
}
use of android.app.ProgressDialog in project phonegap-facebook-plugin by Wizcorp.
the class WebDialog method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
spinner = new ProgressDialog(getContext());
spinner.requestWindowFeature(Window.FEATURE_NO_TITLE);
spinner.setMessage(getContext().getString(R.string.com_facebook_loading));
spinner.setOnCancelListener(new OnCancelListener() {
@Override
public void onCancel(DialogInterface dialogInterface) {
dismiss();
}
});
requestWindowFeature(Window.FEATURE_NO_TITLE);
contentFrameLayout = new FrameLayout(getContext());
// First calculate how big the frame layout should be
calculateSize();
getWindow().setGravity(Gravity.CENTER);
// resize the dialog if the soft keyboard comes up
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
/* Create the 'x' image, but don't add to the contentFrameLayout layout yet
* at this point, we only need to know its drawable width and height
* to place the webview
*/
createCrossImage();
/* Now we know 'x' drawable width and height,
* layout the webview and add it the contentFrameLayout layout
*/
int crossWidth = crossImageView.getDrawable().getIntrinsicWidth();
setUpWebView(crossWidth / 2 + 1);
/* Finally add the 'x' image to the contentFrameLayout layout and
* add contentFrameLayout to the Dialog view
*/
contentFrameLayout.addView(crossImageView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
setContentView(contentFrameLayout);
}
use of android.app.ProgressDialog in project actor-platform by actorapp.
the class BaseActivity method execute.
// Executions
public <T> void execute(Command<T> cmd, int title, final CommandCallback<T> callback) {
final ProgressDialog progressDialog = new ProgressDialog(this);
progressDialog.setMessage(getString(title));
progressDialog.setCancelable(false);
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.show();
cmd.start(new CommandCallback<T>() {
@Override
public void onResult(T res) {
dismissDialog(progressDialog);
callback.onResult(res);
}
@Override
public void onError(Exception e) {
dismissDialog(progressDialog);
callback.onError(e);
}
});
}
Aggregations