public class AntSupportChecker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasAntAddOn(Context context)
Checks for installed additional services (ie.
|
static boolean |
hasAntFeature(Context context)
Checks for built-in ANT hardware.
|
public static boolean hasAntFeature(Context context)
This is unrelated to if the ANT Radio Service is installed or not (see com.dsi.ant.AntService#bindService(Context, android.content.ServiceConnection)
, and if any add-on services have been installed for additional hardware support (see
hasAntAddOn(Context)
).
context
- The context to use for querying installed packages.public static boolean hasAntAddOn(Context context)
If no services are installed, apps must determine themselves if one should be.
eg. check for the USB Host Feature, and if it exits then the ANT USB Service (and ANT Radio
Service) can be installed to provide ANT support.
context
- The context to use for querying installed packages.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.