android/sdk/src/main/java/io/o2mc/sdk/business/DeviceManager.java
public DeviceInformation generateDeviceInformation() {
    if (app == null) {
      notifier.notifyException(new O2MCDeviceException(
              "No device information could be retrieved. Did you supply your Application to the O2MC module?"),
          false); // non fatal, the SDK can still send events, it just won't include much meta data
      return null;
    }

    String appId = app.getPackageName();
    String os = "android";
    String osVersion = Build.VERSION.RELEASE;
    String deviceName = android.os.Build.MODEL;
    String locale = Locale.getDefault().toString(); // 'RFC 4647' standard

    return new DeviceInformation(
        appId, os, osVersion, locale, deviceName
    );
  }
/**
   * Generates an object containing device information.
   *
   * @return information about a phone
   */
Generates an object containing device information.
@return information about a phone
Generates an object containing device information . @return information about a phone
public DeviceInformation generateDeviceInformation() {
    if (app == null) {
      notifier.notifyException(new O2MCDeviceException(
              "No device information could be retrieved. Did you supply your Application to the O2MC module?"),
          false); 
      return null;
    }
    String appId = app.getPackageName();
    String os = "android";
    String osVersion = Build.VERSION.RELEASE;
    String deviceName = android.os.Build.MODEL;
    String locale = Locale.getDefault().toString(); 
    return new DeviceInformation(
        appId, os, osVersion, locale, deviceName
    );
  }
public DeviceInformation generateDeviceInformation ( ) { if ( app == null ) { notifier . notifyException ( new O2MCDeviceException ( "No device information could be retrieved. Did you supply your Application to the O2MC module?" ) , false ) ; return null ; } String appId = app . getPackageName ( ) ; String os = "android" ; String osVersion = Build . VERSION . RELEASE ; String deviceName = android . os . Build . MODEL ; String locale = Locale . getDefault ( ) . toString ( ) ; return new DeviceInformation ( appId , os , osVersion , locale , deviceName ) ; }
Generates an object containing device information.
Generates an object containing device information .
// non fatal, the SDK can still send events, it just won't include much meta data // 'RFC 4647' standard