Code example for Service

Methods: getSystemService

	public MemoLogger(String logFileName, int interval, Service a) {
		super(logFileName, interval);
		// TODO Auto-generated constructor stub 
		m_acMger = (ActivityManager) m_a.getSystemService(Context.ACTIVITY_SERVICE);
		m_mi = new MemoryInfo();
		m_iTotalMemory = getTotalMemory();
	public String getLogValue() {
		// TODO Auto-generated method stub 
		return getMemoryInfo(); 
	public String getMemoryInfo()
Connect your IDE to all the code out there  Get Codota for Java