Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

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

public class Main {
    public static ProgressDialog buildProgressDialog(Context ctx, String message, boolean cancelable) {
        ProgressDialog pd = new ProgressDialog(ctx);
        pd.setMessage(message);
        pd.setCancelable(cancelable);

        return pd;
    }
}