05-28-2012 03:28 PM
Hi.. Is there APIs to access bar-descriptor.xml? I'd like to add some parameters for my app. Is the file included in the final .bar?
Thanks.
05-28-2012 06:42 PM
05-28-2012 07:26 PM
Hi thanks for the reply. I actually only need to read the bar-descriptor.xml file, to retrieve parameters that are added from the IDE or whatever they use. So it's probably not even a filesystem read, just access to wherever the data is stored (since I assume the file is read anyways when the app starts). I'm wondering if there's APIs to read those values without having to roll my own xml parser.
05-29-2012 01:22 AM
use POSIX file API's and libxml2 (included in NDK)
the bar-descriptor.xml file is located within the application sandbox at:
$cwd/app/native/bar-descriptor.xml
where $cwd is the current working directory - you can use the function "getcwd()" for that.
you will need to link against libxml2 - then you should have everything you need ![]()