當前位置: 首頁>>代碼示例>>Java>>正文


Java ProgressDialog.show方法代碼示例

本文整理匯總了Java中android.app.ProgressDialog.show方法的典型用法代碼示例。如果您正苦於以下問題:Java ProgressDialog.show方法的具體用法?Java ProgressDialog.show怎麽用?Java ProgressDialog.show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.app.ProgressDialog的用法示例。


在下文中一共展示了ProgressDialog.show方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: loadChart

import android.app.ProgressDialog; //導入方法依賴的package包/類
public static void loadChart(final Context context, final String strChartFilePath)	{
final ProgressDialog dlgLoadingChartProgress = ProgressDialog.show(context, context.getString(R.string.please_wait),
		context.getString(R.string.loading_chart), true);
final Handler handler = new Handler();

Thread threadLoadChart = new Thread(new Runnable()	{

	@Override
	public void run() {
		final Intent intent = new Intent(context, ActivityChartDemon.class);
		intent.putExtra(ChartOperator.VMFPChartPath, strChartFilePath);
		handler.post(new Runnable()	{
			@Override
			public void run() {
				context.startActivity(intent);
				dlgLoadingChartProgress.dismiss();
			}
		});
	}
});
threadLoadChart.start();
  }
 
開發者ID:woshiwpa,項目名稱:SmartMath,代碼行數:23,代碼來源:MFPFileManagerActivity.java

示例2: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
protected void onPreExecute() {
    // 

    mProgressDialog = new ProgressDialog(context,
            ProgressDialog.THEME_DEVICE_DEFAULT_LIGHT);
    mProgressDialog.setTitle("");
    mProgressDialog.setMessage(activity
            .getString(R.string.mixradio_dialog));

    mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
    mProgressDialog.setOnDismissListener(new OnDismissListener() {

        @Override
        public void onDismiss(DialogInterface dialog) {
            // 
            mTask.cancel(true);
        }
    });
    mProgressDialog.show();
    super.onPreExecute();
}
 
開發者ID:89luca89,項目名稱:ThunderMusic,代碼行數:23,代碼來源:MixRadioActivity.java

示例3: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
protected void onPreExecute() {
    super.onPreExecute();

    // hack to get theme applied (which is not automatically applied due to activity's Theme.NoDisplay
    ContextThemeWrapper theme = new ContextThemeWrapper(InstallExtensionDialogActivity.this,
            FDroidApp.getCurThemeResId());

    progressDialog = new ProgressDialog(theme);
    progressDialog.setMessage(getString(R.string.system_install_uninstalling));
    progressDialog.setIndeterminate(true);
    progressDialog.setCancelable(false);
    progressDialog.show();
}
 
開發者ID:uhuru-mobile,項目名稱:mobile-store,代碼行數:15,代碼來源:InstallExtensionDialogActivity.java

示例4: FileUploadPrepareTask

import android.app.ProgressDialog; //導入方法依賴的package包/類
public FileUploadPrepareTask(Context context, String fileToUploadPath, int size) {
	path = fileToUploadPath;

	progressDialog = new ProgressDialog(context);
	progressDialog.setIndeterminate(true);
	progressDialog.setMessage(getString(R.string.processing_image));
	progressDialog.show();
}
 
開發者ID:treasure-lau,項目名稱:Linphone4Android,代碼行數:9,代碼來源:ChatFragment.java

示例5: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
protected void onPreExecute() {
    super.onPreExecute();
    pDialog = new ProgressDialog(Log_in.this);
    pDialog.setMessage("Loging in....");
    pDialog.setIndeterminate(false);
    pDialog.setCancelable(false);
    pDialog.show();


}
 
開發者ID:SkylineLabs,項目名稱:FindX,代碼行數:12,代碼來源:Log_in.java

示例6: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
protected void onPreExecute() {
    super.onPreExecute();

    mProgressDialog = new ProgressDialog(mContext);
    mProgressDialog.setTitle(mContext.getString(R.string.a_003));
    mProgressDialog.setMessage(mContext.getString(R.string.f_001));
    mProgressDialog.setCancelable(false);
    mProgressDialog.show();
}
 
開發者ID:marcelohanel,項目名稱:PokerBankroll,代碼行數:11,代碼來源:TaskBackup.java

示例7: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
protected void onPreExecute() {
    super.onPreExecute();
    mProgressDialog = ProgressDialog.show(mContext,
            mContext.getString(R.string.tuning_antenna), mContext.getString(R.string.tuning_antenna_desc),
            true, false);
}
 
開發者ID:AndProx,項目名稱:AndProx,代碼行數:8,代碼來源:TuneTask.java

示例8: showProgressDialog

import android.app.ProgressDialog; //導入方法依賴的package包/類
/**
 * 顯示圓形進度對話框
 *
 * @author JPH
 * Date 2014-12-12 下午7:04:09
 * @param activity
 * @param progressTitle
 *            顯示的標題
 * @return
 */
public static ProgressDialog showProgressDialog(final Activity activity,
                                                String... progressTitle) {
    if(activity==null||activity.isFinishing())return null;
    String title = activity.getResources().getString(R.string.tip_tips);
    if (progressTitle != null && progressTitle.length > 0)
        title = progressTitle[0];
    ProgressDialog progressDialog = new ProgressDialog(activity);
    progressDialog.setTitle(title);
    progressDialog.setCancelable(false);
    progressDialog.show();
    return progressDialog;
}
 
開發者ID:duckitgo,項目名稱:DigPhotoPicker,代碼行數:23,代碼來源:TUtils.java

示例9: startKeyGen

import android.app.ProgressDialog; //導入方法依賴的package包/類
private void startKeyGen() {
	progress = new ProgressDialog(GeneratePubkeyActivity.this);
	progress.setMessage(GeneratePubkeyActivity.this.getResources().getText(R.string.pubkey_generating));
	progress.setIndeterminate(true);
	progress.setCancelable(false);
	progress.show();

	Log.d(TAG, "Starting generation of " + keyType + " of strength " + bits);
	KeyGeneratorRunnable keyGen = new KeyGeneratorRunnable(keyType.name, bits, entropy, this);
	Thread keyGenThread = new Thread(keyGen);
	keyGenThread.setName("KeyGen " + keyType + " " + bits);
	keyGenThread.start();
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:14,代碼來源:GeneratePubkeyActivity.java

示例10: initialize

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
public void initialize()	{
	// resize must be down whether there is progressing dialog or not
	super.initialize();
	if (mdlgDataRecalcing == null)	{	// because it is initializing, mdlgDataRecalcing is always null.
		mdlgDataRecalcing = ProgressDialog.show(mcontext, mcontext.getString(R.string.please_wait),
				mcontext.getString(R.string.calculating_chart_data), true);
	}
}
 
開發者ID:woshiwpa,項目名稱:SmartMath,代碼行數:10,代碼來源:PolarExprChart.java

示例11: showProgressDialog

import android.app.ProgressDialog; //導入方法依賴的package包/類
/**
 * Show the loading progress
 * @param context - the current app context
 */
private void showProgressDialog(Context context, String message) {
    mProgressDialog = new ProgressDialog(context);
    mProgressDialog.setMessage(message);
    mProgressDialog.setIndeterminate(true);
    mProgressDialog.setCancelable(false);
    mProgressDialog.show();
}
 
開發者ID:iskandergaba,項目名稱:Botanist,代碼行數:12,代碼來源:DatabaseManager.java

示例12: onCreateDialog

import android.app.ProgressDialog; //導入方法依賴的package包/類
protected Dialog onCreateDialog(int id) {
    prgDialog = new ProgressDialog(context);
    prgDialog.setMessage(context.getResources().getString(R.string.updating));
    prgDialog.setMax(100);
    prgDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    prgDialog.show();
    return prgDialog;
}
 
開發者ID:pooyafaroka,項目名稱:PlusGram,代碼行數:9,代碼來源:themAdapter.java

示例13: onActivityResult

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if (requestCode == Utils.DESCRIPTOR_ASSOCIATE) {

        Toast.makeText(getActivity(), "OK", Toast.LENGTH_SHORT).show();

    } else if (requestCode == Utils.PROFILE_PICK) {

        if(data == null)
            return;

        progress = new ProgressDialog(getActivity());
        progress.setTitle("Loading");
        progress.setMessage("Please wait while the profile is loaded.");
        progress.show();

        try {
            File profile = new File(data.getData().getPath());
            new AsyncProfileLoader(ConfigurationFragment.this)
                    .execute(new FileInputStream(profile));
        } catch (FileNotFoundException e) {
            Log.e("IO", "FILE NOT FOUND " + e.toString());
        }

    }
}
 
開發者ID:feup-infolab,項目名稱:labtablet,代碼行數:29,代碼來源:ConfigurationFragment.java

示例14: onPreExecute

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
protected void onPreExecute() {
    super.onPreExecute();

    progressDialog = new ProgressDialog(MainActivity.this);
    progressDialog.setMessage("Please wait!");
    progressDialog.setCancelable(true);
    progressDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
        @Override
        public void onCancel(DialogInterface dialog) {
            cancel(true);
        }
    });
    progressDialog.show();
}
 
開發者ID:wangwang4git,項目名稱:ReadInJoy-And-Train,代碼行數:16,代碼來源:MainActivity.java

示例15: zoom

import android.app.ProgressDialog; //導入方法依賴的package包/類
@Override
public void zoom(double dXRatio, double dYRatio)	{
	if (dXRatio != 1 || dYRatio != 1)	{
		if (mdlgDataRecalcing == null)	{
			mdlgDataRecalcing = ProgressDialog.show(mcontext, mcontext.getString(R.string.please_wait),
   											mcontext.getString(R.string.calculating_chart_data), true);
			super.zoom(dXRatio, dYRatio);
		}
	}
}
 
開發者ID:woshiwpa,項目名稱:SmartMath,代碼行數:11,代碼來源:XYExprChart.java


注:本文中的android.app.ProgressDialog.show方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。