Log in or register to post comments

How to dispay xml layout .

October 13, 2013 - 11:07pm #1

Hi,

I am new to android and vuforia . I am trying to make sample application which will recognize an image .And after recognition it  should display  xml form like layout having different buttons on it.

I am not gettting how should I do it.

Please Help!!

How to display xml layout .

October 24, 2013 - 5:20am #14

In my XML layout when I click on any of the button ,next android activity start. I wish to keep live camera view on when next activity starts .On front side xml layout containing description and on back side live camera view should be there.

Please tell me how to achieve it.

Thanks in advance.

How to display xml layout .

October 19, 2013 - 5:59am #13

I have tried using Android.bringToFront().But problem still persists.

How to dispay xml layout .

October 18, 2013 - 9:16am #12

Have you tried using the Android .bringToFront() method on your layout view ?

 

How to display xml layout .

October 18, 2013 - 5:51am #11

I am still facing one problem. At initial start of application,after recognizing an image both xml layout and 2D image displays properly. But when next time I start the appplication (eg. when I click back and then click on start button) I am able to see only 2D image not xml layout.I am  not gettting how to solve this problem.

Please Help !!

Thanks in advance.

How to dispay xml layout .

October 17, 2013 - 4:00am #10

Great.

How to dispay xml layout .

October 17, 2013 - 3:48am #9

Thank you very much.

It's done

How to dispay xml layout .

October 16, 2013 - 9:20am #8

This explains how to do that:

https://developer.vuforia.com/forum/faq/android-how-can-i-update-my-ui-response-tracking-events

If you have followed the code there (and you set your layout as Visible / Invisible as appropriate) you should be able to achieve that.

 

How to display xml layout .

October 16, 2013 - 5:32am #7

I have displayed the xml layout on camera screen.But only problem is that xml layout  get displayed before  recognizing an image. I wish to display xml layout after image recognition.But I am not gettting how to do this ?

Please help me to solve this issue.

Thanks in advance.

How to dispay xml layout .

October 16, 2013 - 4:03am #6

Glad to help.

How to dispay xml layout .

October 16, 2013 - 2:55am #5

Thanks a lot.It's working now.

How to dispay xml layout .

October 15, 2013 - 9:06am #4

Check this link (it is equivalent), but includes updated code:

https://developer.vuforia.com/forum/faq/android-how-can-i-update-my-ui-response-tracking-events

 

How to dispay xml layout .

October 15, 2013 - 5:15am #3

Thanks for the help.

 

I am trying to display  simple UI message in ImageTarget sample application.I followed the steps given in link " https://developer.vuforia.com/resources/dev-guide/android-ui-changes" . It is showing following error log

eTargets-2-6-7
$ ndk-build
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
Compile++ arm    : ImageTargets <= ImageTargets.cpp
jni/ImageTargets.cpp: In function 'void Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame(JNIEnv*, jobject)':
jni/ImageTargets.cpp:348:30: error: 'lt' was not declared in this scope
jni/ImageTargets.cpp:348:40: error: 'class QCAR::State' has no member named 'getNumActiveTrackables'
jni/ImageTargets.cpp:348:64: error: expected ')' before ';' token
jni/ImageTargets.cpp:348:66: warning: name lookup of 'tIdx' changed [enabled by default]
jni/ImageTargets.cpp:344:13: warning:   matches this 'tIdx' under ISO standard rules [enabled by default]
jni/ImageTargets.cpp:348:14: warning:   matches this 'tIdx' under old rules [enabled by default]
jni/ImageTargets.cpp:348:72: error: expected ';' before ')' token
jni/ImageTargets.cpp:789:1: error: expected '}' at end of input
jni/ImageTargets.cpp:789:1: error: expected '}' at end of input
jni/ImageTargets.cpp: At global scope:
jni/ImageTargets.cpp:789:1: error: expected '}' at end of input
/cygdrive/c/developer/android-ndk-r9-windows/android-ndk-r9-windows-x86_64/android-ndk-r9/build/core/build-binary.mk:348: recipe for target `obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o' failed
make: *** [obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o] Error 1

 

 

Please help me in solving this problem.

 

How to dispay xml layout .

October 14, 2013 - 1:56am #2

See here:

https://developer.vuforia.com/forum/faq/android-how-can-i-update-my-ui-response-tracking-events

This article explains how to show a message in the UI in response to a detection event;

you can start from it and show an XML layout instead of a simple message (the logic is the same);

for the specific implementation of the XML UI, this is just about Android programming, not a relevant Vuforia question.

 

Log in or register to post comments