Class MedMDeviceKit

  • public class MedMDeviceKit
    extends java.lang.Object
    Main MedM DeviceKit entry point. There are essential entry points to use DeviceKit:

    Sample usage:

      import com.medm.devicekit.*;
     public class MyActivity extends Activity {
         protected void onCreate(Bundle savedInstanceState) {
             try {
                 MedMDeviceKit.init(getApplication(), "device-kit-demo-key");
             } catch (InvalidLicenseKeyException ex)
         protected void onResume() {
             try {
                     new IDataCallback() {
                         public void onNewData(IDeviceDescription source, String readingXML) {
                             // Handle new data
                         public void onDataCollectionStopped() {  }
                     null // Don't receive updates on device status change
             } catch (MedMDeviceKitNotInitializedException ex)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static MedMCollector getCollector()
      Gets the collector - an object that controls communication with devices and receives medical data.
      static MedMDeviceKitConfig getConfig()
      Gets current DeviceKit configuration.
      static MedMDeviceManager getDeviceManager()
      Gets the device manager - an object that manages list of connected devices.
      static MedMScanner getScanner()
      Gets the scanner - an object that searches new Bluetooth devices to connect.
      static java.lang.String getVersion()
      Gets DeviceKit version.
      static void init​( application, java.lang.String licenseKey)
      Init MedM DeviceKit with an application object
      static void initFromAssets​( application, java.lang.String licenseFileName)
      Init MedM DeviceKit with an application object and assets path
      static void setConfig​(MedMDeviceKitConfig config)
      Sets DeviceKit configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait