Code example for Service

Methods: getSystemService

0
	public MemoLogger(String logFileName, int interval, Service a) {
		super(logFileName, interval);
		// TODO Auto-generated constructor stub 
 
		m_a=a;
		m_acMger = (ActivityManager) m_a.getSystemService(Context.ACTIVITY_SERVICE);
		m_mi = new MemoryInfo();
		m_iTotalMemory = getTotalMemory();
	} 
 
	@Override 
	public String getLogValue() {
		// TODO Auto-generated method stub 
		 
		 
		return getMemoryInfo(); 
	} 
 
	 
	public String getMemoryInfo()
    {