Hi. I use the smaples. ex.DrameMarkers . I have a error message. FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: setActivityPortraitMode 04-22 14:05:03.355: E/AndroidRuntime(12924): at com.qualcomm.QCARSamples.FrameMarkers.FrameMarkers.setActivityPortraitMode(Native Method) 04-22 14:05:03.355: E/AndroidRuntime(12924): at com.qualcomm.QCARSamples.FrameMarkers.FrameMarkers.initApplication(FrameMarkers.java:546) ( setActivityPortraitMode(screenOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); ) I was try to skip . But out of other error. Plz~ give me some advice how to do. By the way ...other sample was same error. I use Ecilpse for Mac . The android sdk is new. The qcar sdk Is new. I checked on the Internet! But I can not find the issues related to.
- Sort Posts
- 40 replies
- Last post
The question for sample
i use VideoPlayback sample and i am trying to run but i am getting below exception
Please let me know where i am wrong.
Thanks in advance..
The question for sample
Hi, the cause can likely be one of these two:
- you did not run ndk-build, or
- you need to select Properties / Java Build Path / Order and Exportand make sure to check (tick) the checkbox for QCAR_SDK_ROOT; then press Apply/OK and clean/rebuild the project.
For a complete check-list for this kind of errors, also check this article:
https://developer.vuforia.com/forum/faq/android-how-do-i-fix-my-compile-or-runtime-errors
The question for sample
Hi AlessandroB,
thanks for reply ,
i have followed below
- you need to select Properties / Java Build Path / Order and Exportand make sure to check (tick) the checkbox for QCAR_SDK_ROOT; then press Apply/OK and clean/rebuild the project.
but still i am getting
Thanks.
The question for sample
DId you run ndk-build ? was the build successfull ? (and di you refresh the project in Eclipse after building with ndk-build ?)
The question for sample
Hi, you can look at the code in FullscreenPlayback:
public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { mMediaPlayerLock.lock(); // Get video and screen dimensions: int videoWidth = mMediaPlayer.getVideoWidth(); int videoHeight = mMediaPlayer.getVideoHeight(); int screenWidth = getWindowManager().getDefaultDisplay().getWidth(); // Apply aspect ratio: mVideoView.getLayoutParams().height = (int) (((float) videoHeight / (float) videoWidth ) * (float) screenWidth ); mVideoView.getLayoutParams().width = screenWidth; mMediaPlayerLock.unlock(); }
you should be able to achieve the resizing by modifying that code to use your custom size.
The question for sample
Not quite sure I understand your last message;
however, in general you can do:
mVideoView.getLayoutParams().width = YOUR CUSTOM VALUE
mVideoView.getLayoutParams().height = YOUR CUSTOM VALUE
The question for sample
Ok, I see. That's already what the sample does;
if you want to change the size of the video (as diaplayed "on the target" in 3D), you can change the targetPositiveDimensions variable (in VideoPlayback.cpp).
The question for sample
See this line of code in VideoPlayback.cpp:
targetPositiveDimensions[currentTarget] = imageTarget.getSize();
that ensures already that the video fits into the target image, but you can adjust that value to your needs.
The question for sample
I think I am not following:
the VideoView is a 2D view in Android, and it is used to display the video in fullscreen (not in 3D on the target itself)
on the other hand, the positiveVideoDimension variable is only used for 3D rendering in OpengGL.
The question for sample
Yes, you will need to create a DataSet with your desired images, using the online Target Manager:
please read here:
https://developer.vuforia.com/resources/dev-guide/target-manager-user-guide
The question for sample
Hi,
we are aware of the issue on the I9082, you can follow the thread here:
https://developer.vuforia.com/forum/device-support/samasung-galaxy-grand-i9082-camera-preview-black
The question for sample
ok..
i have follow below steps in CloudRecognition for change target image but now i am not able to detect my new image. anything missing ?
- Sign-up for the cloud recognition service inside the Target Manager.
- Create a cloud database.
- Provision a couple of images.
- Download the client access/secret keys, and replace the "kAccesskey" and "kSecretKey" default values with your own key values in:
- (Android) /jni/CloudReco.h
Thanks
The question for sample
Hi could you start a new Thread? as we are deviating quite a bit from the original topic.
thanks.
The question for sample
yes, it was problem is working in Samasung Galaxy Grand (I9082) no issue for other device, now i have problem is change target image in CloudRecognition sample, i have followed below
- Sign-up for the cloud recognition service inside the Target Manager.
- Create a cloud database.
- Provision a couple of images.
- Download the client access/secret keys, and replace the "kAccesskey" and "kSecretKey" default values with your own key values in:
- (Android) /jni/CloudReco.h
but my new image is not detecting, please help me if i am missing something..
Thanks...
The question for sample
I guess you are simply not seeing the book cover that is usually displayed when the target is recognized;
this does not mean that the target is not recognized, it simply means that i cannot display any information (book cover) because your image has no metadata associated with it;
so, first create a metadata file in your PC file syetm (call it for instance my_metadata_file.txt), then open it with a text editor and put this simple line of text inside it:
samplebook1.json
Such string is something that the CloudReco sample can use to find out which book cover needs to display.
So, now you need to add the metadata to your image target; to do that, go to the Target Manager, login, open your Cloud Database, click on the Image Target that you like and then click on the button "Upload Metadata' that you should see on the right.
It will ask you to provide a file; point the file browser to the file you previously create and click OK to upload it.
Then you will need to wait a few minutes in order to get the target completely updated and read-to-use.
Then you can launch the sample again and this time it should work;
BTW, what is the star rating of your Target ?
The question for sample
Hi
as per ur suggestion i have uploaded matadata(sample.txt) which contain
Hello, I am a metadata
samplebook1.json
and i am getting 1 star retting then i have replaced the "kAccesskey" and "kSecretKey" in CloudReco.h but i am getting below exception
The question for sample
in CloudRecognition sample how can we play video instead of display book data in dialog after metch target image ?
Thanks.
The question for sample
Hi,
you could combine the code in the VideoPlayback sample (which shows how to display a video on a target...),
with the code in CloudReco sample;
note: we don't have a specific tutorial for such use case (so you will need to dig a bit into the sample code and find your way through it);
however, we have prepared a code "walk-through" to make the exploration of the VideoPlayback sample code simpler; you can find it here:
https://developer.vuforia.com/resources/sample-apps/video-playback-sample-app
look at the sub-section with title "Sample Specific Notes" (open it) and you will find the sample code explanation (for Android).
The question for sample
Sure, you can look at Videoplayback.cpp, in the renderFrame() function, you will find a line like:
for (int tIdx = 0; tIdx < state.getNumTrackableResults(); tIdx++) ...
That's where the state is iterated for the currently detected trackables.
The question for sample
The visualization of the videos in native code (VideoPlayback.cpp) is based on the currentStatus variable (for each video);
the currentStatus is updated via the setStatus function, which is called from Java; most of the logic that controls the video playback is done in Java, while the C++ part if more focused on the rendering aspect.
I cannot guide you through all the code of VideoPlayback sample, as it consists of several thousands lines of code;
however the sample code structure is explained in all its major aspects in this page:
https://developer.vuforia.com/resources/sample-apps/video-playback-sample-app
(open the foldable item titled "Sample Specific Notes" at the bottom of the page and you will see the sample code structure explained)
The question for sample
I just downloaded the videoplayback sample. These is no videoplayback.cpp file in the zip folder.
Please help. Urgent!
The question for sample
This is an old thread.
With the current version of Vuforia (3.0), the Video Playback sample is written in Java entirely.
So, you need to look at the VideoPlayback.java, VideoPlaybackRenderer.java and VideoPlayerHelper.java files.
Also, if you go to this page:
https://developer.vuforia.com/resources/sample-apps/video-playback-sample-app
and you click on "Sample Specific Notes" to unfold it, you will find a description of the most relevant parts of the sample code.
Be sure to run ndk-build so that the native libraries are included w/ your project. Also run Project > Clean in Eclipse to ensure that they're incorporated into your build.
java.lang.UnsatisfiedLinkError arises when a native method is not defined or accessible from Java.