Package com.dsi.ant
Class AntSupportChecker
java.lang.Object
com.dsi.ant.AntSupportChecker
Determines whether applications can use ANT functionality with the current platform setup.
Does not help with installing services or determining if they should be installed.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasAntAddOn
(android.content.Context context) Checks for installed additional services (ie.static boolean
hasAntFeature
(android.content.Context context) Checks for built-in ANT hardware.
-
Method Details
-
hasAntFeature
public static boolean hasAntFeature(android.content.Context context) Checks for built-in ANT hardware.This is unrelated to if the ANT Radio Service is installed or not (see
AntService.bindService(Context, android.content.ServiceConnection)
, and if any add-on services have been installed for additional hardware support (seehasAntAddOn(Context)
).- Parameters:
context
- The context to use for querying installed packages.- Returns:
- If the built-in ANT feature is available for the ANT Radio Service to use.
- Since:
- 4.0
-
hasAntAddOn
public static boolean hasAntAddOn(android.content.Context context) Checks for installed additional services (ie. ANT USB Service) providing support for additional ANT hardware.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.- Parameters:
context
- The context to use for querying installed packages.- Returns:
- If an add-on ANT service is available for the ANT Radio Service to use.
- Since:
- 4.0
-