It is recommended to handle your augmented reality experience in a separate Activity.ĭeclare the architectView inside a layout XML.Į.g. To test an ARchitect World on a desktop browser, you must include ade.js tool instead to avoid JavaScript errors and see a development console. In your HTML files to use the AR namespace and the architectView will handle them properly. The experiences are written in HTML and JavaScript and call methods in Wikitude's AR-namespace (e.g. The experience itself, sometime referred to as ARchitect World, is implemented in JavaScript and packaged in your application's asset-folder (as in this project) or on your own server. The architectView creates a camera surface and handles sensor events. The basic concept is to add an architectView to your project and notify it about lifecycle events. Keep in mind that the Wikitude SDK is not a native Android SDK as you know from other SDK's. Read the chapter on how to obtain a free trial key. The Activity holding the AR-View (called architectView in the following) must have set ConfigurationChanges = .ConfigChanges.Orientation | .ConfigChanges.KeyboardHidden | .ConfigChanges.ScreenSize.Add the following permissions to your AndroidManifest.xml.If you already purchased a license, please set the applicationId to the package name you provided us with.Open adle from your module and add com.wikitude:js:9.4.0 as a dependency like in the code below.This is usually done in the top level adle. Optionally you can include the Wikitude SDK using our custom maven repository instead. Implementation (name: 'wikitudesdk', ext:'aar') Implementation fileTree(dir: 'libs', include: ) Open adle from your module, make sure the minSdkVersion is 22 or higher, add the wikitudesdk.aar as a dependency and tell gradle to search the libs folder, like in the code below. Alternatively you can use the SampleProject that is already bundled with the SDK, where the necessary configuration steps have already been made.Ĭopy the file Library/wikitudesdk.aar into the libs folder of your module. You can start either off with a blank project. Setup Guide Android Project Setup Android Studio
0 Comments
Leave a Reply. |