Changes

Jump to navigation Jump to search
72 bytes removed ,  18:34, 1 December 2023
m
Text replacement - "</syntaxhighlight>" to "</pre>"
}
</syntaxhighlightpre>
This class can be called in every Android application which uses the BaseX library with the following call, for example:
<syntaxhighlight lang="java">
BaseXDatabase baseXDatabase = new BaseXDatabase(getApplicationInfo().dataDir);
</syntaxhighlightpre>
At the moment it is not possible to use the BaseX library, therefore more adjustments have to be done in the BaseX code.
this(new MainProp(file));
}
</syntaxhighlightpre>
As shown in the adjustment above, it is necessary to set the two variables 'Prop.HOME' and Prop.USERHOME' during the constructor call. In the BaseX code those variables are final, which need also be changed in order to set them during the call.
URIS.put(FNCrypto.class, CRYPTOURI);
</syntaxhighlightpre>
The result of this adjustment is, that it is now possible to use BaseX as an Android library, with the lack of support of the following XQuery functions:
return "";
}
</syntaxhighlightpre>
This methods of the BaseXDatabase class can now be used in every Android application which includes the created BaseX Android library.
compile fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
}
</syntaxhighlightpre>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu