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.


hello eva,

i already stored all file from the  08_Browsing Pois_5_Native Detail Screen folder to my project. but the poi never shown. maybe the latitude and longtitude sample coordinate is too far cause im in INDONESIA wkwk lol, how can i make my own lat and lang coordinate? i'm just a newbie for this kind of stuff hahaha *sorry for bad english 

Hi Eva,


I just want to include some more messages I get in the logcat when I run the application.


W/art: Suspending all threads took: 8.508ms

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

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


If the error is occurring as a result of too much processing on the main thread, I am unsure of how I could distribute this among a number of threads. For some reason I don't think that this is the problem, but again I am unsure. Just trying to give you as much information as possible, so you can hopefully see what the problem is.


Thanks,

-Paul.

Hello David,

When working with Geo locations you can choose either RelativeLocation or GeoLocation. The concept of RelativeLocation is that they are always relative to the current user location and this is why we prefer these when we need to test. GeoLocations are fixed to a certain latitude/longitude coordinate and stay at exact this place. In order to make sure that you have specified the correct coordinates when working with GeoLocations you can also advice these websites to 
Convert Lat and Long to Address and to Get Latitude and Longitude.

 

Thanks

Eva

Hello Paul,

Please make sure that you are using our samples without any changes and verify once again that you are testing with SDK version 6. Also note that although the SDKExamples project provides a basic implementation of a LocationProvider this is by far not the best location strategy available for Android.

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

my app still can't find the POI. i icon always showing "trying to find where you are".
this is file structure for my project. and the MainActivity. thanks

image

 

Hi David,

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

Thanks
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


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

 

Thanks Eva, I will do that. I overlooked the android tutorials thinking I wouldn't have to know much about them, because I was working with the Wikitude SDK/ framework. But I will go through them and hopefully gain a better understanding as to how the classes will interect and how to configure my project correctly.


Thanks,

-Paul.

I was unable to understand how to properly use the location provider functions provided in the SDKExamples folder which is included in the Wikitude download.


I recommend anyone with this problem to have a look through all the example java files contained in that folder, in order to gain an understanding of how the code works.


Failing that take a look at this post, where there is code examples and a github link of a working project in the thread, download it and play around with the code.


That's what I am currently doing, as I am new to android studio and Wikitude, so there is a lot to get my head around. :)


Issue Resolved :D

hi, i'm using wikitude sample app with `08_PointOfInterest_3_MultiplePois` plugin in ionic.building app is successful bit i got an error like this: "tring to find where you are" with alert icon "!".

i test app in some device but got the same error.

thank's

-ali

Hi,


This error indicates that the SDK doesn't get any position data. Which devices are you testing on? Also, did you make sure that you test outside and wait until you have a valid GPS signal?


Thx and greetings

Nicola

Login or Signup to post a comment