Android Open Source - senhancelib Logger Application






From Project

Back to project page senhancelib.

License

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.

Java Source Code

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;
    }
  }
}




Java Source Code List

de.uos.nbp.BooleanProperties.java
de.uos.nbp.Utils.java
de.uos.nbp.senhance.DataLogger.java
de.uos.nbp.senhance.ECGCsvReader.java
de.uos.nbp.senhance.EventLoggingActivity.java
de.uos.nbp.senhance.EventSequenceAdapter.java
de.uos.nbp.senhance.EventTag.java
de.uos.nbp.senhance.LoggerApplication.java
de.uos.nbp.senhance.SDLogger.java
de.uos.nbp.senhance.bluetooth.BluetoothPacketConnection.java
de.uos.nbp.senhance.bluetooth.BluetoothService.java
de.uos.nbp.senhance.bluetooth.DeviceListActivity.java
de.uos.nbp.senhance.bluetooth.FramedPacketConnection.java
de.uos.nbp.senhance.bluetooth.PacketConnectionHandler.java
de.uos.nbp.senhance.bluetooth.PacketConnection.java
de.uos.nbp.senhance.datasource.ControlSource.java
de.uos.nbp.senhance.datasource.DataSink.java
de.uos.nbp.senhance.datasource.DataSourceBase.java
de.uos.nbp.senhance.datasource.DataSource.java
de.uos.nbp.senhance.datasource.DummySourceThread.java