I have come back! Sorry to resurrect this thread, but the issue has come back to haunt me!
So, I got a brand new test phone, another Karbon Titanium S5. I have installed the SDK sample as well as my sample. When I try the Browsing POIs in SDK sample and click on the 'Presenting POI Details', it says 'JSON objects loaded properly', but no POI marker shows up. I have tried this with SIM and withot SIM. When I try my sample with the poiwithlable.js, I put alert statements in the script in multiple places in the 'createMarkerAtLocation' method from beginning to end. All these alert statements show up properly, but no marker in camera view!
One more update on the SIM use: earlier, I had told you that the samples started working in my Samsug DUOS device when I inserted a SIM. The samples continue to work in that device now ever AFTER REMOVING the sim!
So, I am not sure what to think of this whole solution. Is this issue isolated to me and my devices?
Sorry to be bothering you with this, but I need a solution! Please help.
Thx
K. Ramesh
A
Andreas Fötschl
said
almost 10 years ago
Hi Ramesh,
We'll soon provide updated sample-application which handles altitude handling in a better way. Could you please let me know if you see dots in the radar of the "Browsing POIs" sample? I guess it is related to aan inaccurate altitude value of your device, compare this post.
Kind regards, Andreas
R
Ramesh Krishnamoorthy
said
almost 10 years ago
Andreas,
Thanks for the very quick response. Yes, I see dots in the radar. If it is an altitude issue, how will it work in my other device? How can altitude value depend on the device? How do I fix it?
Thx
K. Ramesh
A
Andreas Fötschl
said
almost 10 years ago
Hi again!
You may ether set the altitude of the marker to "AR.CONST.UNKNOWN_ALTITUDE" or adjust the locationManager so altitude value of user is never passed over to architectView. Both approaches will cause rendering your markers on user's altitude level as fallback.
Kind regards, Andreas
R
Ramesh Krishnamoorthy
said
almost 10 years ago
Andreas,
Thanks. I will try your suggestion. In the meantime, I had tried the poicircle.js to see if the circle showed up. Even that is not working. This is the code:
onLocationChanged: function onLocationChangedFn(latitude, longitude, altitude, accuracy) {
//alert(markerDrawable);
var myGeoLocation = new AR.RelativeLocation(null, 10, 0, 0); var myCircle = new AR.Circle(1, {style: {fillColor: '#FFC100'}});
var poiHTMLdrawable = new AR.HtmlDrawable({uri:"marker.html"}, 4, {viewportWidth: 512, scale:1, updateRate:AR.HtmlDrawable.UPDATE_RATE.STATIC}) var myGeoObject = new AR.GeoObject(myGeoLocation, {drawables: {cam: myCircle}}); //AR.context.onLocationChanged = null; }
Is there an altitude issue here as well?
K. Ramesh
R
Ramesh Krishnamoorthy
said
almost 10 years ago
I tried the AR.CONST.UNKNOWN_ALTITUDE suggestion. It didn't work!
The same code continues to work in my other Samsung DUOS device.
A
Andreas Fötschl
said
almost 10 years ago
Hi again,
I guess location service is the issue of your phone. Some devices do not fire location events if no SIM is inserted...
Please try using a Fake GPS Tool (e.g. this one), which spoofs your location and fires location events frequently.
Kind regards, Andreas
R
Ramesh Krishnamoorthy
said
almost 10 years ago
Andreas,
Thanks again for the response. I have tried the Fake GPS as suggested by you with no luck! I downloaded the app, started it, clicked on the Set Location button (didn't know what it did internally) and then started the SDK sample's Browsing POI application. As earlier, it said 'JSON objects loaded peoprly', but no POIs showed up in the camera view.
Just FYI - I have already tried putting alert statements in onLocationChanged in multiple places till the end (even before I tried the Fake GPS solution). All of them showed up properly.
So, just to clarify - I have tried all options that are known to me - with SIM, without SIM, with WIFI, GPS, Fake GPS - none worked on this device which is a brand new Karbon device.
Thx
K. Ramesh
A
Andreas Fötschl
said
almost 10 years ago
Hi Ramesh,
Please have a look at the very latest SDK Samples app (version 3.2). The issue you describe appears to be cullingDistance related. In case your places are more than 50km away you need to update cullingDistance in JS or native code. Latest Sample application also does not use any altitude information anymore so markers will appear on user level by default.
Kind regards, Andreas
R
Ramesh Krishnamoorthy
said
about 10 years ago
I have installed the SDK and the sample apps that come along with it. After some initial trouble, I was able to make application start up in my device (Karbonn, Titanium S5 with android version 4.1.2). But when I access the POI samples (which is what I am interested in developing), noting shows up in the camera view. The camera opens fine and I can see the things around me, but no POI information. I am not sure what I need to do to make this work. Am I missing something, any setup ?
Thanks
A
Andreas Fötschl
said
about 10 years ago
Hi there!
POIs are loaded after first location update. Please also try the "Browsing POIs" sample section - In the POI Radar sample you see where places are located.
Kind regards, Andreas
R
Ramesh Krishnamoorthy
said
about 10 years ago
But I don't see any markers painted on the camera view! When I run the samples am I supposed to see the markers or not? The Browsing Poi Deatils doesn't show any markers. I just see a normal camera view.
Thanks for your help
R
Ramesh Krishnamoorthy
said
about 10 years ago
I created a another simple app following the POI example. I have the same exact issue as the samples. No markers are painted on the camera view! I have put some JS alerts in the js file inside the 'onLocationChangedFn' and the 'createMarkerAtLocation' functions and the alerts show up properly (which hopefully means that the javascript functions are being called properly. But still the marker doesn't show at the geo location.
09-21 11:32:50.809: D/dalvikvm(6108): GC_FOR_ALLOC freed 1255K, 29% free 8947K/12551K, paused 18ms, total 19ms 09-21 11:32:50.839: D/dalvikvm(6108): GC_CONCURRENT freed 15K, 24% free 9561K/12551K, paused 12ms+3ms, total 33ms 09-21 11:32:50.849: E/deviceSupported(6108): true 09-21 11:32:50.849: I/ArchitectWebView(6108): ARchitect Build: d4452f2 09-21 11:32:50.919: D/dalvikvm(6108): GC_CONCURRENT freed 561K, 22% free 9826K/12551K, paused 12ms+2ms, total 33ms 09-21 11:32:50.919: D/dalvikvm(6108): WAIT_FOR_CONCURRENT_GC blocked 9ms 09-21 11:32:50.939: D/dalvikvm(6108): GC_FOR_ALLOC freed 733K, 21% free 9920K/12551K, paused 17ms, total 17ms 09-21 11:32:50.969: D/dalvikvm(6108): GC_CONCURRENT freed 608K, 20% free 10147K/12551K, paused 12ms+2ms, total 30ms 09-21 11:32:50.969: D/dalvikvm(6108): WAIT_FOR_CONCURRENT_GC blocked 17ms 09-21 11:32:51.049: E/Web Console(6108): Uncaught ReferenceError: AR is not defined at null:1 09-21 11:32:51.109: I/Adreno200-EGL(6108): <qeglDrvAPI_eglInitialize:299>: EGL 1.4 QUALCOMM build: Nondeterministic AU_msm8625_REFS/TAGS/JB_REL_RB5_QRD_D20130228_CL3285357_release_AU (CL3285357) 09-21 11:32:51.109: I/Adreno200-EGL(6108): Build Date: 03/01/13 Fri 09-21 11:32:51.109: I/Adreno200-EGL(6108): Local Branch: 09-21 11:32:51.109: I/Adreno200-EGL(6108): Remote Branch: m/refs/tags/jb_rel_rb5_qrd_D20130228 09-21 11:32:51.109: I/Adreno200-EGL(6108): Local Patches: NONE 09-21 11:32:51.109: I/Adreno200-EGL(6108): Reconstruct Branch: NOTHING 09-21 11:32:51.179: E/libEGL(6108): called unimplemented OpenGL ES API 09-21 11:32:51.179: W/Adreno200-ES20(6108): <qgl2DrvAPI_glHint:90>: GL_INVALID_ENUM 09-21 11:32:51.179: E/libEGL(6108): called unimplemented OpenGL ES API 09-21 11:32:52.289: D/dalvikvm(6108): GC_FOR_ALLOC freed 1121K, 23% free 9784K/12551K, paused 19ms, total 22ms 09-21 11:32:52.949: E/BufferQueue(6108): dequeueBuffer: mMinUndequeuedBuffers=2 exceeded (dequeued=6) 09-21 11:32:52.949: I/Choreographer(6108): Skipped 109 frames! The application may be doing too much work on its main thread. 09-21 11:32:52.979: E/BufferQueue(6108): dequeueBuffer: mMinUndequeuedBuffers=2 exceeded (dequeued=5) 09-21 11:32:55.139: D/dalvikvm(6108): GC_FOR_ALLOC freed 867K, 25% free 9523K/12551K, paused 24ms, total 24ms 09-21 11:32:55.199: D/dalvikvm(6108): GC_CONCURRENT freed 8K, 22% free 10918K/13959K, paused 12ms+5ms, total 47ms 09-21 11:33:08.909: E/Web Console(6108): Uncaught TypeError: Property 'onLocationChanged' of object is not a function at null:1 09-21 11:33:08.909: E/Web Console(6108): Uncaught TypeError: Property 'onLocationChanged' of object is not a function at null:1
I see two issues in the above log: on regarding the unimplemented OpenGL ES API and the other regarding "Uncaught TypeError: Property 'onLocationChanged' "
Are those the reasons for the marker not showing up? How do I fix those and get the marker on the screen. Please help ...
Thanks
R
Ramesh Krishnamoorthy
said
almost 10 years ago
Can anyone help please?
M
Markus Eder
said
almost 10 years ago
Hi!
It seems like you have a problem with the correct declaration of the onLocationChanged()-trigger in your javascript file. Have you made any modifications in the javascript file of that samples world?
If so could you please post the javascript code of your newly defined onLocationChanged()-method in the javascript file, so i can further investigate the reasons for you problems.
Ramesh Krishnamoorthy