Thanks a lot Mr. Alex that worked for me. What I didn’t realize
then was that I’ll have to provide location separately using google API(more
specifically using locationmanager). I do appreciate your on time response.
let's set the first thing straight. The SDKexample project does compile and run and even shows that it is fetching my current location as the GPS status does blink at the top status bar. The problem is when i try to build my own project after i have followed all the guidelines listed in the "SETUP GUIDE ANDROID" and provided the URL/path to one of the examples (let say it is 4_Point$Of$Interest_1_Poi$At$Location) i get no such status that GPS or Wifi is being used to fetch my location. I suspect that it is the problem with the onLocationChanged method that is not being triggered at all and thus does not return my current coordinates to the function created above. Below is the Main Java file that is handling all the calls and activities with in the app.
alert('Location received'); var marker_image = new AR.ImageResource("assets/marker_idle.png");
var marker_loc = new AR.GeoLocation(lat+0.05, lon, alt);
var marker_drawable = new AR.ImageDrawable(marker_image, 8);
var marker_object = new AR.GeoObject(marker_loc, { drawables: { cam: } }); } </script>
</html>
whether i activate the onLocationChanged by giving it reference of the variable(in your case "var World") or by associating a function with it, the app doesnt bahave the same way as it does in the SDK Examples app.
I have compiled this code on HTC desire 830 with android v5.0.1(API 22) and Samsung S3 with android v4.3(API 18) & v4.4.4(API 19).
Muhammad Ali