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 I have tried all the above suggestions, but it still can't find my location. I have location services enabled on the application, and the permissions in the androidmanifest xml file, and I am just using the exact same code the example.


I was looking through the logcat and there are two lines with errors:


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

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


I can't find these files in the example folder, I have read that ade.js is available by downloading architect tools, but I am not sure what the second file is, or where it can be located in the example folder. I have looked in the assets folder but neither files are present there.


Any help would be much appreciated.

Thanks,

-Paul.

Hello Paul,

 

This message is shown when your location can not be fetched as needed. The "i" icon Trying to find out where you are means the app is waiting for location info. If it keeps showing that, it may be because your GPS is not open or you are testing in house and sometimes that blocks/affects the signal.


Please make sure that you have the location services on for the sample app. The location service has to be authorized by the user (so you can check your phone settings for the app if the location service is enabled to the specific app). For the location handling and the correct set-up please check the set-up guide to make sure you have everything done correctly. And you can also check the implementation and documentation for the POIs samples.

Finally, this could also happen because of specific requirements that your device fail to complete. You could try our sample app with several phones and see if this is happening with other phones as well. The minimum requirements that a device should fulfill are:
1. Compass
2. GPS and/or networking positioning
3. Accelerometer

Thanks
Eva

 

Login or Signup to post a comment