Back to project page senhancelib.
The source code is released under:
GNU Lesser General Public License
If you think the Android project senhancelib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.uos.nbp.senhance; /*from w ww . j a v a 2s. c om*/ import android.app.Application; /** * This application can be used to provide a single EventLogger. * * @author rmuil * November 30, 2011 */ public class LoggerApplication extends Application { private Object logLock = new Object(); private volatile DataLogger applicationLogger; public DataLogger getLogger() { synchronized(logLock) { if (applicationLogger == null) { applicationLogger = new SDLogger(getApplicationContext()); } } return applicationLogger; } public void setLogger (DataLogger applicationLogger) { synchronized(logLock) { this.applicationLogger = applicationLogger; } } }