Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/**
 * @copyright Urucas
 * @license   Copyright (C) 2013. All rights reserved
 * @version   Release: 1.0.0
 * @link       http://urucas.com
 * @developers Bruno Alassia, Pamela Prosperi
 */

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

public class Main {
    public static Dialog showPreloader(Context context, String title, String message) {
        Dialog dialog = ProgressDialog.show(context, title, message, true);
        dialog.setCancelable(true);
        return dialog;
    }
}