get ActivityManager - Android Activity

Android examples for Activity:Activity Manager

Description

get ActivityManager

Demo Code


//package com.java2s;

import android.app.ActivityManager;

import android.content.Context;

public class Main {
    public static ActivityManager getManager(Context context) {
        return (ActivityManager) context
                .getSystemService(Context.ACTIVITY_SERVICE);
    }/* w  w  w  .  jav a 2 s . c om*/
}

Related Tutorials