Create Progress Dialog - Android User Interface

Android examples for User Interface:Dialog

Description

Create Progress Dialog

Demo Code


//package com.java2s;

import android.app.ProgressDialog;
import android.content.Context;

public class Main {
    public static ProgressDialog CreateProgressDialog(Context context,
            String progressText) {
        ProgressDialog pd = new ProgressDialog(context);
        pd.setCancelable(false);//  ww w.  ja  v a2  s .  c o  m
        pd.setMessage(progressText);
        return pd;
    }
}

Related Tutorials