Log in or register to post comments

Tracker's Metadata path?

February 8, 2012 - 10:09am #1

I've tried with the Dominoes sample to modify the location of the "Stones.xml" File to be read from a sd card folder instead from the assets folder, the reason why I want to do this is because Android doesn't allow to add/remove/update files inside the build. So my question is, is it possible to read the Trackers metadata files from the sd card? If so, please give me an example? I tried this:

if (!dataSet->load("/mnt/sdcard/example_folder/Stones.xml", QCAR::DataSet::STORAGE_APPRESOURCE))
{
LOG("Failed to load data set. Valor!");
return 0;
}

And it didn't work.

Thanks in advance

Martin

Re: Tracker's Metadata path?

February 8, 2012 - 5:14pm #2

Two things:

1) The path should start with /sdcard, not /mnt. Also note that some devices use /emmc instead of /sdcard.

2) STORAGE_APPRESOURCE expects a relative path to the application directory. STORAGE_ABSOLUTE will let you use an absolute path (use this one for the sdcard).

- Kim

Log in or register to post comments