Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.ActivityManager;

import android.content.Context;

public class Main {
    private static Context context;

    public static boolean isServerRunning(Class server) {
        if (server == null) {
            return false;
        }
        ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
        // am.getRunningServiceControlPanel()
        return false;
    }
}