Hi, i imported the SDK folder in my Android Studio and i was able to test all the examples in my GNexus nicely. The problems i have are when i configured an android studio project in order to use one of the example in the SDK for Android.
1- Copied the wikitude.jar in my lib and added as a library;
2- Added all the requirements as you described in the documentation in the AndroidManifest;
3- Created a ArchitectView in my main.xml file;
4- Copied one folder including the example in my /src/main/assets folder;
The project starst (Browsing poi number 6) , i see the TRIAL watermark, but the radar, the POIs and the limit range doesn't appear.
In my logcat i read this errors:
Activity com.xx.xx.ActivityWikitude has leaked IntentReceiver com.wikitude.architect.ArchitectView$a@41b17778 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.xx.xx.ActivityWikitude has leaked IntentReceiver com.wikitude.architect.ArchitectView$a@41b17778 that was originally registered here. Are you missing a call to unregisterReceiver()?
. . . at com.xx.xx.ActivityWikitude.onCreate(ActivityWikitude.java:24)
The other two are
10331-10627/com.xx.xx E/libEGL? called unimplemented OpenGL ES API
10331-10331/com.xx.xx E/AudioManagerAndroid? BLUETOOTH permission is missing!
Does anyone please help me?
over 3 years ago
please have another look at the sample code, you are missing some code to make it work.
Take a closer look at those two classes: AbstractArchitectCamActivity SampleCamActivity
E.g. you aren't using a locationProvider (AbstractArchitectCamActivity.onCreate), which you need for the Geo samples.
Best regards, Simon
over 3 years ago
Could you provide the link with the sample code, where I can find AbstractArchitectCamActivity and SampleCamActivity classes?