I've found out that the support for Java bindings has been deprecated in 9.0.12 and has been completely removed in 9.3.3 and I've seen that the latest sample are partly written in Java and partly written in C++, making use of native classes.
My project is entirely written in Java and makes use of the old Java classes, there's any way to migrate the project by calling the native classes from Java?
Where could I find some information? I have a project developed with vuforia-sdk-8-6-10.
Otherwise where could I find the old Java library?
Moreover, I had an old dataset which I used in my project, but I couldn't find the way to add a new object to that dataset so I created a new one.
So I would like to add to my project this new dataset that I've created with Vuforia Target Manager after having scanned my object with Vuforia Object Scanner 9.8.6.
This is my code:
@Override
public boolean doLoadTrackersData()
{
TrackerManager tManager = TrackerManager.getInstance();
ObjectTracker objectTracker = (ObjectTracker) tManager
.getTracker(ObjectTracker.getClassType());
Log.d(LOGTAG, "funzione doLoadTrackersData ");
if (objectTracker == null)
return false;
if (mCurrentDataset == null)
mCurrentDataset = objectTracker.createDataSet();
if (mCurrentDataset == null)
return false;
if (!mCurrentDataset.load("ObjectForActions/ObjectForActions_OT.xml",
STORAGE_TYPE.STORAGE_APPRESOURCE)) {
Log.d(LOGTAG, "load failed");
return false;
}
if (!objectTracker.activateDataSet(mCurrentDataset)) {
Log.d(LOGTAG, "activateDataSet failed ");
return false;
}
TrackableList trackableList = mCurrentDataset.getTrackables();
for (Trackable trackable : trackableList)
{
String name = "Current Dataset : " + trackable.getName();
trackable.setUserData(name);
Log.d(LOGTAG, "UserData:Set the following user data "
+ trackable.getUserData());
}
return true;
}
It loads and activate the dataset, but it doesn't print anything, as if the TrackableList were empty. How could I resolve this?
I've also seen that while the old file .dat contains files .bin, my new file .dat contains a directory. Could it be a problem?
Thanks a lot.