Wikitude API - not always displaying POI on screen

Put your problem here if it does not fit any of the other categories.

Wikitude API - not always displaying POI on screen

Postby emilynbee » Sun Feb 27, 2011 10:36 pm

Hey there, new to the board and new to Android in general, so hopefully I'm posting this in the right spot.

I'm coding an Android app for my senior design project at school, and I want to integrate the Wikitude API into my project. I just want to pass it a single POI to display. Well, sometimes it shows it on screen, other times it doesn't.

Here's the code where I launch the intent:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. //application object to hold reference to the application
  2.                 final Application app = this.getApplication();
  3.                 final Activity thisActivity = this;
  4.                 final double lat = this.lat_coord;
  5.                 final double lng = this.lng_coord;
  7.                 //button to launch AR
  8.                 Button findStop = (Button) findViewById(;
  9.                 findStop.setOnClickListener(new View.OnClickListener() {
  11.                         @Override
  12.                         public void onClick(View view) {
  13.                                 // launch the AR intent
  15.                                 //wikitude intent to display Augmented Reality component
  16.                                 WikitudeARIntent intent = new WikitudeARIntent(app, [app name redacted], [api key redacted], [name redacted], false);
  18.                                 //POI to mark the bus stop
  19.                                 WikitudePOI stopPOI = new WikitudePOI(lat, lng, 0, "Origin Stop");
  21.                                 //give the POI to the intent
  22.                                 intent.addPOI(stopPOI);
  24.                                 //describe the AR view
  25.                                 intent.addTitleText("Find Starting Bus Stop");
  27.                                 //launch the intent
  28.                                 intent.startIntent(thisActivity);
  30.                         }
  31.                 });
Parsed in 0.015 seconds, using GeSHi

I'm really unfamiliar with AR in general, so I'm sure it's something dumb I'm overlooking. It's just frustrating because sometimes it will display, others it won't. It is receiving a set of coordinates. I've added in a line in my display to print the coords, and those print out correctly.

Any thoughts?

(My apologies if I've posted in the wrong forum. If that's the case, could a mod whoosh it to the right one?)
Once Poster
Once Poster
Posts: 1
Joined: Sun Feb 27, 2011 10:30 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 6 guests