By aciang
on Wed, 03/27/2013 - 06:57
Hello,
Is it possible to change the CloudReco database by changing the Access and Secret Key in runtime?
Please advise.
Hello,
Is it possible to change the CloudReco database by changing the Access and Secret Key in runtime?
Please advise.
CloudReco Access and Secret Key in runtime
Yes, this is possible; are you using Unity or Android or iOS native ?
CloudReco Access and Secret Key in runtime
I am using Unity :)
CloudReco Access and Secret Key in runtime
Ok, so you should be able to do that by placing some code like this in one of your scripts:
disable cloud reco:
CloudReco Access and Secret Key in runtime
Thank you
CloudReco Access and Secret Key in runtime
you're welcome.
CloudReco Access and Secret Key in runtime
Hi there i would like to change the access key and private key at runtime too but on iOS.
How it will be in iOS ?
Thanks
Cheers!
CloudReco Access and Secret Key in runtime
In Vuforia SDK 2.8.7, in the VuforiaSamples-2-8-x project, you need to change the strings called kAccessKey and kSecretKey in the CloudRecoViewController.mm source file, located under the folder "vuforia-sdk-ios-2-8-7\samples\VuforiaSamples-2-8-9\Vufor
CloudReco Access and Secret Key in runtime
Hi I think I couldnt explain what I would like, let me try again.
I already changed with my access and secret keys, but it is just for one database.
CloudReco Access and Secret Key in runtime
The QCAR::TargetFinder can only be initialized with one pair of secret/access keys; this means that you can only interact with one cloud database at a time;
CloudReco Access and Secret Key in runtime
above code gives error in unity3d, "error CS1501: No overload for method `FindObjectOfType' takes `0' arguments". i'm using sdk 2.8.7
CloudReco Access and Secret Key in runtime
You need to be able to debug simple syntax errors like this which have nothing to do with Vuforia.
Search the sample code for how to use e.g. the Cloud Reco sample:
CloudReco Access and Secret Key in runtime
Hii, AllessendroB
Can you pllese tell me that how can i get Unique Traget iD In vuforia cloud recognition service through our code.
CloudReco Access and Secret Key in runtime
You can use the getUniqueTargetId() method of the QCAR::TargetSearchResult class. Please, consult the API reference and developer guide for questions that are already answered there:
CloudReco Access and Secret Key in runtime
Sorry for stupid Question,
I have got that code from cloudreco.cpp but I am not able to get that Code in Cloudreco.java file, So i just want to get that Unique Id in my cloud reco.java file.
CloudReco Access and Secret Key in runtime
If you are using the latest Vuforia SDK (2.8.7), have a look at the CloudReco.java code in the VuforiaSamples-2-8-7 project;
this contains the code that you need to use; in particular, the relevant code is in the onQCARUpdate() method.
CloudReco Access and Secret Key in runtime
CloudReco Access and Secret Key in runtime
Vuforia 2.0.30 does not have a Java API (C++ only); the only Java code is the one that you use to setup the main Activity and the Renderer, and to glue that with the C++ code via JNI.
if you want to use the Java API, you need to upgrade to the latest 2.8.7.
CloudReco Access and Secret Key in runtime
that mean From vuforia 2.0.30 ,we can not get unique targetid in my cloud reco.java file, while i am getting that id in Cloudreco.cpp file.
So is there any way to use that Id in cloudreco.ava. Plese provide me some solution to get in Cloudreco.java fiile.
CloudReco Access and Secret Key in runtime
You can get the unique target ID in Java, by passing that information from C++ to Java using JNI (Java Native Interface);
for more information about JNI C++/Java communication, see here:
CloudReco Access and Secret Key in runtime
Thanks a lot for Quick Reply,
I am less away from my Peak Please help me,
Will i have to again create *.so file.
This is the code in CloudReco.Cpp file, But I am not able to get in cloudreco.java file
Will i have to again compile it from Cygwin??
CloudReco Access and Secret Key in runtime
Yes, you always need to rebuild with ndk-build (in cygwin or from a windows cmd console) whenever you make changes to the C++ native code.