Code example for ActivityManager

Methods: getRunningServices

0
		super.onStart(); 
	} 
	 
	private void updateService(){ 
        am = (ActivityManager)getSystemService(ACTIVITY_SERVICE);
        runningServiceInfo = (ArrayList<RunningServiceInfo>) am.getRunningServices(100);
        loadAdapter(); 
	} 
	 
	private void loadAdapter(){ 
		process_list_adapter = new ServiceListAdapter(this);
        setListAdapter(process_list_adapter);
	} 
	 
	 
	private class ServiceListAdapter extends BaseAdapter{
		Context mContext = null;
		public ServiceListAdapter(Context context) {
		    mContext = context;
		} 
		@Override