Search in sources :

Example 66 with ProgressDialog

use of android.app.ProgressDialog in project KeepScore by nolanlawson.

the class MainActivity method showProgressDialog.

private ProgressDialog showProgressDialog(int titleResId, int max) {
    ProgressDialog progressDialog = new ProgressDialog(this);
    progressDialog.setCancelable(false);
    progressDialog.setTitle(titleResId);
    progressDialog.setIndeterminate(false);
    progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    progressDialog.setMax(max);
    progressDialog.show();
    return progressDialog;
}
Also used : ProgressDialog(android.app.ProgressDialog)

Example 67 with ProgressDialog

use of android.app.ProgressDialog in project AndEngine by nicolasgramlich.

the class ActivityUtils method doAsync.

public static <T> void doAsync(final Context pContext, final CharSequence pTitle, final CharSequence pMessage, final AsyncCallable<T> pAsyncCallable, final Callback<T> pCallback, final Callback<Exception> pExceptionCallback) {
    final ProgressDialog pd = ProgressDialog.show(pContext, pTitle, pMessage);
    pAsyncCallable.call(new Callback<T>() {

        @Override
        public void onCallback(final T result) {
            try {
                pd.dismiss();
            } catch (final Exception e) {
                Debug.e("Error", e);
            /* Nothing. */
            }
            pCallback.onCallback(result);
        }
    }, pExceptionCallback);
}
Also used : ProgressDialog(android.app.ProgressDialog) CancelledException(org.andengine.util.exception.CancelledException)

Example 68 with ProgressDialog

use of android.app.ProgressDialog in project Jota-Text-Editor-old by jiro-aqua.

the class TextLoadTask method onPreExecute.

@Override
protected void onPreExecute() {
    super.onPreExecute();
    if (mFileLoadListener != null) {
        mFileLoadListener.onPreFileLoad();
    }
    mProgressDialog = new ProgressDialog(mActivity);
    //        mProgressDialog.setTitle(R.string.spinner_message);
    mProgressDialog.setMessage(mActivity.getString(R.string.spinner_message));
    mProgressDialog.setIndeterminate(true);
    mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
    mProgressDialog.setCancelable(false);
    mProgressDialog.show();
}
Also used : ProgressDialog(android.app.ProgressDialog)

Example 69 with ProgressDialog

use of android.app.ProgressDialog in project Jota-Text-Editor-old by jiro-aqua.

the class TextSaveTask method onPreExecute.

@Override
protected void onPreExecute() {
    super.onPreExecute();
    if (mPreProc != null) {
        mPreProc.run();
    }
    try {
        mProgressDialog = new ProgressDialog(mActivity);
        // mProgressDialog.setTitle(R.string.spinner_message);
        mProgressDialog.setMessage(mActivity.getString(R.string.spinner_message));
        mProgressDialog.setIndeterminate(true);
        mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        mProgressDialog.setCancelable(false);
        mProgressDialog.show();
    } catch (Exception e) {
        mProgressDialog = null;
    }
}
Also used : ProgressDialog(android.app.ProgressDialog)

Example 70 with ProgressDialog

use of android.app.ProgressDialog in project superCleanMaster by joyoyao.

the class ProgressDialogFragment method onCreateDialog.

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mIndeterminateDrawable = getArguments().getInt("indeterminateDrawable");
    mMessage = getArguments().getString("message");
    ProgressDialog mProgressDialog = new ProgressDialog(getActivity(), AlertDialog.THEME_HOLO_LIGHT);
    if (mIndeterminateDrawable > 0) {
        mProgressDialog.setIndeterminateDrawable(getActivity().getResources().getDrawable(mIndeterminateDrawable));
    }
    if (mMessage != null) {
        mProgressDialog.setMessage(mMessage);
    }
    return mProgressDialog;
}
Also used : ProgressDialog(android.app.ProgressDialog)

Aggregations

ProgressDialog (android.app.ProgressDialog)266 DialogInterface (android.content.DialogInterface)47 Intent (android.content.Intent)23 View (android.view.View)21 File (java.io.File)19 TextView (android.widget.TextView)13 SuppressLint (android.annotation.SuppressLint)12 Handler (android.os.Handler)12 FrameLayout (android.widget.FrameLayout)12 ArrayList (java.util.ArrayList)12 IOException (java.io.IOException)11 JSONObject (org.json.JSONObject)10 Uri (android.net.Uri)9 LinearLayout (android.widget.LinearLayout)9 OnCancelListener (android.content.DialogInterface.OnCancelListener)8 Display (android.view.Display)8 Activity (android.app.Activity)7 Dialog (android.app.Dialog)7 ImageView (android.widget.ImageView)7 List (java.util.List)7