Hi Paul,
Before you can use architectView the following steps need to be done:
1.) make sure your layout contains
<com.wikitude.architect.ArchitectView android:id="@+id/YOUR_ARCHITECT_VIEW_ID" android:layout_width="fill_parent" android:layout_height="fill_parent"/>
2.) call the following in your Activity.onCreate
setContentView( R.id.YOUR_LAYOUT_ID );
3.) get the architectView
this.architectView = (ArchitectView) findViewById( R.id.YOUR_ARCHITECT_VIEW_ID );
final ArchitectStartupConfiguration config = new ArchitectStartupConfiguration(); config.setLicenseKey( * license key */ ); this.architectView.onCreate( config );
Paul Russell
Hi when I run my application I receive the error mentioned in the title:
FATAL EXCEPTION: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.wikitude.architect.ArchitectView.onCreate(com.wikitude.architect.ArchitectStartupConfiguration)' on a null object reference
I will attach the logcat and a screenshot of my project file structure if that is any help:
Here is a screenshot of the files in my project folder:
Any help would be much appreciated, as I am doing this as a final year project and the deadline is growing near.
I am trying to run the POI With Label example, and once I get that running I will be expanding on it. But at the moment this is the error I get.