Statement
You are welcome to repost, but please keep the original source of the article :)
Vitamio: http://www.vitamio.org
Farmer's uncle: http://www.cnblogs.com/over140/
Body
VitamioInstaller
Sorting: peasant uncle
Class Overview
Public class VitamioInstaller
Before using any classes and methods of the program, we recommend that you use this class to check whether the device has installed the Vitamio plug-in.
Constant
Public static final intVITAMIO_VERSION_CODE
Vitamio version No.
Public static final StringVITAMIO_VERSION_NAME
Vitamio version name
Public static final StringVITAMIO_PACKAGE
Vitamio package name
Public static final intVITAMIO_NOT_SUPPORTED
Vitamio decoding library type-not supported.
Public static final intVITAMIO_ARMV6
Vitamio decoding library type-for ARMv6.
Public static final intVITAMIO_ARMV6_VFP
Vitamio decoding library type-for ARMv6 VFP.
Public static final intVITAMIO_ARMV7_VFPV3
Vitamio decoding library type-for ARMv7 VFPV3.
Public static final intVITAMIO_ARMV7_NEON
Vitamio decoding library type-for ARMv7 NEON.
Common Methods
Public static StringGetCompatiblePackage()
Returns the name of the compatible package.
Public static intGetVitamioType()
Obtain the type of the Vitamio decoder library. For the return value, see constants.
Public static StringCheckVitamioInstallation(Context ctx)
Check whether the Vitamio plug-in is installed.
Return Value
Returns the compatible package name.
Exception
When VitamioNotCompatibleException does not support decoding libraries
When the VitamioNotFoundException cannot find the Vitamio plug-in
Public static StringCheckVitamioInstallation(Context ctx, int desireVersion)
Check whether the Vitamio plug-in has been installed and whether it has expired.
Parameters
CtxContext
Target version number of desireVersion
Return Value
Returns the compatible package name.
Exception
When VitamioNotCompatibleException does not support decoding libraries
When the VitamioNotFoundException cannot find the Vitamio plug-in
VitamioOutdateException the installed Vitamio plug-in has expired.
Public static StringGetVitamioInfo(Context ctx)
Obtain the installation information of Vitamio. For example, the version name and installation path.
Public static final StringGetLibraryPath()
Obtain VitamioDecode library installation path.
Public static booleanIsNativeLibsInited(Context context)
Whether the decoding package has been initialized. (Decompress and initialize the decoding package)