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 ShowLoader(Context ctx) {
        ProgressDialog progress = new ProgressDialog(ctx);
        //progress.setTitle("StormCloud");
        progress.setMessage("Loading...");
        return progress;
        //progress.show();
        // To dismiss the dialog
        //progress.dismiss();

    }
}