Welcome to ARx API Docs

Project Setup

7min
this will explain how to set up your android project before integrating this api configure your project the arxapi requires the following project configuration minsdkversion = 21 versiontarget = 29 versioncompiler = 29 configure your manifest the arxapi requires the following authorizations make sure your manifest requests them \<uses permission android\ name="android permission record audio" /> \<uses permission android\ name="android permission camera" /> \<uses feature android\ name="android hardware usb host" /> in addition to permissions, the api requires the following intent this intent must fit into your \<activity>\</activity> \<activity>\</activity> \<intent filter> \<action android\ name="android intent action main" /> \<category android\ name="android intent category launcher" /> \</intent filter> \<intent filter> \<action android\ name="android hardware usb action usb device attached" /> \</intent filter> \<meta data android\ name="android hardware usb action usb device attached" android\ resource="@xml/device filter" /> in order for the android system to detect the arxwear headset you must add a device filter xml file containing the following \<resources> \<! uvc(miscellaneous device class) > \<usb device class="239" subclass="2" /> \<! uvc video control interface > \<usb device class="14" subclass="1" /> \<! uvc video stream interface > \<usb device class="14" subclass="2" /> \</resources> setup your project's build gradle make sure your project's gradle file includes the following buildscript { repositories { mavencentral() mavenlocal() google() } dependencies { classpath 'com android tools build\ gradle 4 1 3' classpath 'com github dcendents\ android maven gradle plugin 2 1' classpath 'org jetbrains kotlin\ kotlin gradle plugin 1 5 20' } } allprojects { repositories { mavencentral() mavenlocal() google() maven { url 'https //jitpack io' } maven { url 'http //raw\ github com/saki4510t/libcommon/master/repository/' } } } ext { androidxversion = '1 1 0' commonlibversion= '4 1 1' versioncompiler = 29 versiontarget = 29 minsdkversion = 21 javasourcecompatibility = javaversion version 1 8 javatargetcompatibility = javaversion version 1 8 } setup your module's build gradle make sure your module's gradle file includes the following android { defaultconfig { ndk { abifilters 'armeabi v7a', 'arm64 v8a' } } } dependencies { implementation filetree(dir "libs", include \[" jar", " aar"]) implementation files(' /libs/arxapi aar') implementation "com serenegiant\ common 4 1 1" implementation "com google android material\ material 1 4 0" implementation 'androidx appcompat\ appcompat 1 3 1' implementation 'com jakewharton timber\ timber 5 0 1' } add the arxapi aar download the aar here create a libs folder at the root of your project copy the arxapi aar to the libs folder if not already done, make sure you added this to your project's gradle file dependencies { implementation filetree(dir "libs", include \[" jar", " aar"]) implementation files(' /libs/arxapi aar') }