Start a new topic
Solved

Wikitude SDK POI At Location Example - trying to find where you are

Hi,


I'm new to Wikitude SDK and developing with android, I am currently trying to run the poiatlocation example, but the app will not load my location and I just get a message saying "trying to find where you are". I will try and give as much information as I can so a solution can be found. I have made no changes to the example code, I read somewhere on the forums that it may work by setting a custom location, but I am not clear on how I should do this. 


Phone: One Plus X (Android version 5.1.1)

Android Studio: 2.2.3


I am using the latest version of Wikitude SDK also.


Below is the the log files that appear when I run the app:


02/06 18:40:02: Launching app

Cold swapped changes.

$ adb shell am start -n "com.example.russellp.ar_application1/com.example.russellp.ar_application1.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

Connected to process 13517 on device oneplus-one_e1001-7ba13112

I/asset: Success to oxygen resources /system/framework/oxygen-framework-res.apk

I/InstantRun: Instant Run Runtime started. Android package is com.example.russellp.ar_application1, real application class is null.

W/art: Failed to find OatDexFile for DexFile /data/data/com.example.russellp.ar_application1/files/instant-run/dex/slice-slice_4-classes.dex ( canonical path /data/data/com.example.russellp.ar_application1/files/instant-run/dex/slice-slice_4-classes.dex) with checksum 0x2e6f1293 in OatFile /data/data/com.example.russellp.ar_application1/cache/slice-slice_4-classes.dex

W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable

E/WebViewFactory: can't load with relro file; address space not reserved

I/WebViewFactory: Loading com.google.android.webview version 55.0.2883.91 (code 288309100)

I/asset: Success to oxygen resources /system/framework/oxygen-framework-res.apk

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>

W/linker: libwebviewchromium.so: unused DT entry: type 0x6ffffffe arg 0x33fa0

W/linker: libwebviewchromium.so: unused DT entry: type 0x6fffffff arg 0x3

I/cr_LibraryLoader: Time to load native libraries: 55 ms (timestamps 7441-7496)

I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"

I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"

I/chromium: [INFO:library_loader_hooks.cc(163)] Chromium logging enabled: level = 0, default verbosity = 0

I/cr_BrowserStartup: Initializing chromium process, singleProcess=true

I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.1.C4__release_AU ()

              OpenGL ES Shader Compiler Version: E031.25.03.06

              Build Date: 08/11/15 Tue

              Local Branch: mybranch12886200

              Remote Branch: quic/LA.BF.1.1.1.c4

              Local Patches: NONE

              Reconstruct Branch: NOTHING

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>

D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290

I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>

I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>

I/cr_Ime: ImeThread is enabled.

W/cr_media: Requires BLUETOOTH permission

D/SensorManager: enableSensor native: LIS3DSH Accelerometer

D/SensorManager: enableSensor native: MMC34160PJ MMC34160PJ

D/SensorManager: enableSensor native: LIS3DSH Accelerometer

E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)

D/AppTracker: App Event: start

D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

D/Atlas: Validating map...

D/SensorManager: disableSensor native: LIS3DSH Accelerometer

D/SensorManager: disableSensor native: LIS3DSH Accelerometer

W/AudioCapabilities: Unsupported mime audio/evrc

D/SensorManager: disableSensor native: MMC34160PJ MMC34160PJ

W/AudioCapabilities: Unsupported mime audio/qcelp

W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc

D/AppTracker: App Event: stop

W/AudioCapabilities: Unsupported mime audio/x-ms-wma

W/AudioCapabilities: Unsupported mime audio/x-ms-wma-lossless

W/AudioCapabilities: Unsupported mime audio/x-ms-wma-pro

W/AudioCapabilities: Unsupported mime audio/amr-wb-plus

D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290

W/AudioCapabilities: Unsupported mime audio/qcelp

D/NetworkStateReceiver: Network connectivity change

W/AudioCapabilities: Unsupported mime audio/evrc

W/VideoCapabilities: Unsupported mime video/mpeg2

W/VideoCapabilities: Unsupported mime video/mpeg2

W/VideoCapabilities: Unsupported mime video/x-ms-wmv

W/VideoCapabilities: Unsupported mime video/divx

W/VideoCapabilities: Unsupported mime video/divx311

I/OpenGLRenderer: Initialized EGL, version 1.4

D/OpenGLRenderer: Enabling debug mode 0

W/VideoCapabilities: Unsupported mime video/divx4

W/VideoCapabilities: Unsupported mime video/mp4v-esdp

I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es

D/AbstractTracker: Event success

D/AbstractTracker: Event success

E/chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver

W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13517

E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/ade.js

I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@32c83c94 time:28748394

E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/geolocation_2/jquery/jquery-mobile-transparent-ui-overlay.css

W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13517


This is all the information I can't think of to attach at the moment.


Any Help would be much appreciated.


Thanks,

-Paul.


Hi Paul,

 That was my mistake since I was not clear enough. I meant which SDK version you are testing with. Are you testing with our new SDK 6?


Thanks

Eva

Hi David,

Please refer to this forum post in order to solve your issue.

Thanks
Eva

 

Hi Eva,


Yes I have downloaded SDK version 6, and went through the set up process again, and all files tht were missing from before are now contained in the project folder. It is building successfully, and only showing the errors I mentioned in the last message. I am aware that the wikitude location accuracy is not the best available, I just want to get this example up an running to certain degree (so it can at least retrieve a location). Then I am going to work of this example to apply it to my final year project as part of my degree. The project seems like it should be quite straightforward to complete using Wikitude, hence why I chose this SDK.


The project is a smartphone application that is used by technicians when putting up satellite dishes, it would be used so technicians can detect the nearest mast/base stations to their location and identify the direction the satellite dish should be facing, and it most also provide an estimated distance, and I must create a method to calculate signal strength. With wikitude I believe I should be able to store all the masts locations in a .js file as json data.

Extras that I intend to add to the project if I have time, is a radar. There is already an example for this as well so I assume it should not be too hard to implement that also.


I am just worried now that I won't be able to use Wikitude SDK, as the example application will not work. The other applications that don't use location functions work fine.


I am living in Ireland, and internet speed here and gps is quite good, so I am confused as to what the problem could be. I will try all the different POI examples again now, just in case it is that one example that is not working.


My deadline is 31st March, that is why I am quite eager to get this application functioning as I can.


Thanks,

-Paul

Just adding the latest logcat from terminal, when the app is run, added a line of code to onCreate() check if my device is supported:


 

03/01 18:03:50: Launching app

$ adb push C:\Users\RussellP\Desktop\Antenna Alignment Applicaton\Antenna_Alignment_Application\app\build\outputs\apk\app-debug.apk /data/local/tmp/ie.nuigalway.paulrussell.antenna_alignment_application

$ adb shell pm install -r "/data/local/tmp/ie.nuigalway.paulrussell.antenna_alignment_application"

 pkg: /data/local/tmp/ie.nuigalway.paulrussell.antenna_alignment_application

Success

 

 

$ adb shell am start -n "ie.nuigalway.paulrussell.antenna_alignment_application/ie.nuigalway.paulrussell.antenna_alignment_application.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

Connected to process 16924 on device motorola-xt1068-ZX1D224G4X

I/InstantRun: Instant Run Runtime started. Android package is ie.nuigalway.paulrussell.antenna_alignment_application, real application class is null.

W/art: Suspending all threads took: 5.625ms

I/art: Background partial concurrent mark sweep GC freed 18966(1140KB) AllocSpace objects, 7(164KB) LOS objects, 39% free, 7MB/12MB, paused 6.761ms total 58.831ms

W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable

I/WebViewFactory: Loading com.google.android.webview version 56.0.2924.87 (code 292408700)

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>

I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>

I/cr_LibraryLoader: Time to load native libraries: 17 ms (timestamps 937-954)

I/cr_LibraryLoader: Expected native library version number "56.0.2924.87", actual native library version number "56.0.2924.87"

I/cr_LibraryLoader: Expected native library version number "56.0.2924.87", actual native library version number "56.0.2924.87"

I/chromium: [INFO:library_loader_hooks.cc(163)] Chromium logging enabled: level = 0, default verbosity = 0

I/cr_BrowserStartup: Initializing chromium process, singleProcess=true

I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/09/15, 6cbbf7d, I3193f6e94a

D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290

E/deviceSupported: true

I/cr_Ime: ImeThread is enabled.

W/cr_media: Requires BLUETOOTH permission

E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)

W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc

W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2

I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es

I/DeviceCamera: Only Camera2 supports setting the camera focus distance manually.

D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290

D/NetworkStateReceiver: Network connectivity change

I/OpenGLRenderer: Initialized EGL, version 1.4

W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 16924

W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 16924

W/Adreno-ES20: <core_glViewport:1253>: GL_INVALID_VALUE

I/art: Background sticky concurrent mark sweep GC freed 10268(1004KB) AllocSpace objects, 0(0B) LOS objects, 7% free, 11MB/12MB, paused 5.982ms total 108.299ms

I/DeviceCamera: Only Camera2 supports setting the camera focus distance manually.

I/Choreographer: Skipped 69 frames! The application may be doing too much work on its main thread.

I/Choreographer: Skipped 41 frames! The application may be doing too much work on its main thread.


Here is the file structure of my project (just in case I am missing any file, I don't think I am)


image

Hi Paul,


on Android the Wikitude SDK does not implement a location strategy to trigger location updates. This means that you have to implement this yourself and pass the location to the SDK by calling architectView.setLocation(). A sample implementation can be found in the AbstractArchitectCamActivity.


If you are already doing this and it still does not work could you please send us your MainActivity and its corresponding layout.


Best Regards,

Alex

Oh yes I am. But I have seen there is a newer version out as of 15/02/2017, I am using the version previous to that. So I am using 6.0, not 6.0.1. But yes to confirm I am using SDK 6.


Thanks,

-Paul.

Hi Paul,

Have you downloaded Javascript Android from our download page? Because if you had then you should have the files ade.js and  jquery-mobile-transparent-ui-overlay.css under the corresponding file path. This is the reason why you are not seeing any POIs and you are getting the errors you posted above.

Check your asset folder if it contains the file ade.js and geolocation_2/jquery/jquery-mobile-transparent-ui-overlay.css.


Eva



Hi Eva,


I am just having problems importing the wikitude samples library below, I'm not really sure how to do it.

I am trying to create a sub-folder, and then just drag wikitude-sdk-sample into it. 



image


Yeah I did. but those to files are not in my asset folder. I will try re-downloading it and loading the example into a new project.


Thanks,

-Paul.

hello there,
i have the same problem too, i build the app from example 08_Browsing Pois_5_Native Detail Screen. the POI doesnt show. do you know how to fix that? and what should i do to make my own POI data?
sorry for bad english

 

Hello Paul,

Questions on how to import libraries and files in an Android project are standard Android development questions. Please check Android tutorials to find out details on how to import libraries and set-up Android projects. Make sure you understand the Android development workflow and coding, before you copy files from our sample app. Additionally please make sure to check our Android set-up guide provided in our documentation and study the sample app to know what each of the classes and methods are doing.

Thanks
Eva

 

Hello David,

Have you tried the instructions provided in the second forum post? Are you getting any error apart from the 'Trying to find where you are' ? Did you check to see if all files are stored in your project?

Thanks
Eva 

 

Hi Eva,


Upon re-downloading the the JavaScript Android from the download page, I realized that I was not using sdk 6, I was using 5. and it did not have the two missing files:


ade.js

geolocation_2/jquery/jquery-mobile-transparent-ui-overlay.css


The sdk 6 download has both of these.  I am currently going through the setup guide again carefully, to make sure I complete each step correctly. I am half way through it and I am getting an error when I run the project saying 'error: package com.wikitude.architect does not exist', for some reason it's not recognizing the wikitude architect library.  But I will finish with the setup, because maybe there is a step I have not yet completed that will fix this error.


Thanks,

-Paul.




Hi Eva,


I have setup a new example project for SDK 6, and made the necessary changes according to the setup guide. It builds successfully with no errors, but it still can't find my location for some reason. One bit of progress I did make is that, the screen is no longer blank white, the view of the camera operates now. It still just gives the message trying to find your location. I am using wifi with location on.


I'm not really sure where to go from here, I will have a look at some documentation for location stategies on android studio's website as I say a link for it in the wikitude documentation somewhere and said for location accuracy to go to location strategies in android studios documentation.


Do you have any idea why the location is still not being retrieved?


Thanks,

-Paul.

Login or Signup to post a comment