Log in or register to post comments

ImageTargets sample in my own project?

September 23, 2011 - 4:08am #1

I would like to start the ImageTargets sample with a Button from my own project. I've copied all the objects from the ImageTargets sample project to my own project. I have a main Activity with a button and call the ImageTargets class with

Quote:

Intent intent = new Intent (this, ImageTargets.class);
startActivity(intent);

Currently I get this error:

Quote:

java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
com.cinema.ar.android.ImageTargets.getOpenGlEsVersionNative(Native Method)
com.cinema.ar.android.ImageTargets.getInitializationFlags(ImageTargets.java:277)
com.cinema.ar.android.ImageTargets.onCreate(ImageTargets.java:253)

In the original image sample targets I'm running "build-ndk" before I copied it into my own project. I don't know where I make changes so that it works.

In ImageTargets.cpp I must enter my packet, right? For example:

Quote:

JNIEXPORT void JNICALL
Java_com_cinema_ar_android_ImageTargets_setActivityPortraitMode

Where do I make further changes so that it works? I'd really appreciate your help!

Re: ImageTargets sample in my own project?

September 23, 2011 - 7:42am #2

ok now it works! I just had to run again "ndk-build" with the changes in the ImageTargets.cpp. ;-)

Log in or register to post comments