I am a rookie and I am trying to use wikitude for the first time. I am using Android Studio. In the main layout.xml, I have the following lines of code:
In the mainactivity, on create, i am using the following lines of code:
this.architectView = (ArchitectView) findViewById(R.id.architectView); final StartupConfiguration config = new StartupConfiguration(key); this.architectView.onCreate(config); Boolean test = ArchitectView.isDeviceSupported(this);
The runtime is not able to render the architectView. Please can you hint what I am missing? I have added wikitudesdk.arr file in the libs and also added the following lines of code in the build.gradle file
Please check the Android set-up guide to get details on how to set-up the sample app and/or your own app. For details on how to work with Android Studio, please check here.
Greetings
Nicola
H
Hariprasauth Ram
said
about 8 years ago
Thanks for the response, Nicola. I did start the set up with that guide. As mentioned in my post, I have done all the steps mentioned and would like to know if I have missed something.
Regards,
Hari
S
Simon 248601
said
about 8 years ago
Hi Hariprasauth,
you need to set the ContentView to the layout file containing the architectView before you use findViewById to retrieve the ArchitectView instance.
Please take a look at the Android Example Application to see a full working setup. (AbstractArchitectCamActivity.java and SampleCamActivity.java)
Patrick Ward
1 person has this problem