Sony Addon SDK
public class

DeviceInfoHelper

This project is no longer being supported and will not get any further updates.
extends java.lang.Object
  1. java.lang.Object
  2. com.sonyericsson.extras.liveware.extension.util.registration.DeviceInfoHelper

Class Overview

This class contains information about the watch

Summary

Public Constructors
DeviceInfoHelper()
Public Methods
static boolean isSmartWatch2ApiAndScreenDetected(Context context, java.lang.String hostAppPackageName)

Checks host app API level and screen size to check if SmartWatch 2 is supported.

static boolean isSensorSupported(Context context, java.lang.String hostAppPackageName, java.lang.String sensorType)

Checks if host application supports a specific sensor.

static int removeUnsafeValues(Context context, ContentValues values)

Removes contentvalues that don't match the current SmartConnect version.

Public Constructors

public DeviceInfoHelper()

Public Methods

public static boolean isSmartWatch2ApiAndScreenDetected(Context context, java.lang.String hostAppPackageName)

Checks host app API level and screen size to check if SmartWatch 2 is supported.

Parameters
context The context.
hostAppPackageName
Returns

true if SmartWatch is supported.

public static boolean isSensorSupported(Context context, java.lang.String hostAppPackageName, java.lang.String sensorType)

Checks if host application supports a specific sensor.

Parameters
context The context.
hostAppPackageName The package name of the host application
sensorType The sensor type
Returns

true if the host application supports the sensor

public static int removeUnsafeValues(Context context, ContentValues values)

Removes contentvalues that don't match the current SmartConnect version. NOTE: This method can not be called before extension is registered

Parameters
context
values
Returns

See Also