Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

import android.view.WindowManager;

import android.widget.ProgressBar;

public class Main {
    public static void closeProgress(Context context, ProgressBar pBar) {
        WindowManager winManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
        winManager.removeView(pBar);
    }
}