The data to be exported is provided by db.DatabaseAdapter.getAllCategoriesMap(), which gathers the categories from the database and creates according objects. However, the database does not include direct information about a parent of a category, thus the parent field is always null.
The required information about the hierarchy of the categories can be extracted from the left/right properties of a category, like done in getAllCategoriesTree() via CategoryTree.createFromCursor(). This mechanism obviously needs to be adopted.
The data to be exported is provided by db.DatabaseAdap ter.getAllCateg oriesMap( ), which gathers the categories from the database and creates according objects. However, the database does not include direct information about a parent of a category, thus the parent field is always null. sTree() via CategoryTree. createFromCurso r(). This mechanism obviously needs to be adopted.
The required information about the hierarchy of the categories can be extracted from the left/right properties of a category, like done in getAllCategorie