Start a new topic

Image Recognition error

Image Recognition error


Hi there!

Could you give me more information about the error that you are getting? E.g. Is it a problem at compile time or are you getting an exception during runtime?

Are you sure that you have implemented all the lifecycle methods of the activity and called the appropriate architectview-methods?

Have you set all the required permissions in your applications's manifest file?

Please have a look at our documentation and sample app to verify that everything is implemented accordingly.

Hope that helps,

Markus

I have followed the tutorial for implementing an image recognition activity in android but i keep getting the same error! Error inflating class com.wikitude.architect.ArchitectView.

This is the code for the class that implements the view:

import java.io.IOException;

 

import com.wikitude.architect.ArchitectView;

import com.wikitude.architect.ArchitectView.ArchitectConfig;

 

import android.app.Activity;

import android.os.Bundle;

 

public class recoimagen extends Activity {

 

public ArchitectView architectView;

 

 

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.recoimagen);

 

this.architectView = (ArchitectView)this.findViewById( R.id.architechtView );

final ArchitectConfig config = new ArchitectConfig( "" /* license key */ );

this.architectView.onCreate( config );

};

 

protected void onPostCreate(){

this.architectView.onPostCreate();

try {

this.architectView.load( "arexperience.html" );

} catch (IOException e) {

e.printStackTrace();

}

};

 

protected void onPause(){};

 

protected void onDestroy(){};

 

}

This is the xml layout.



<?xml version="1.0" encoding="utf-8"?>

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="match_parent" >

    

    <com.wikitude.architect.ArchitectView 

    android:id="@+id/architechtView"

    android:layout_width="fill_parent" 

    android:layout_height="fill_parent"

    />

 

</FrameLayout>

Where the erroir points at line 6.


 
Login or Signup to post a comment