Changes

Jump to navigation Jump to search
1,004 bytes added ,  10:55, 10 April 2014
no edit summary
The first step is to create an Android library project, which will be later modified to represent the BaseX Android library.<br>
In Android Studio the 'Create New Project' menu item needs to be chosen. In order to this the displayed window appears.
[[File:Exampleandroid-studio-new-project-dialog.jpg]]It is important that the minimum Android version is Gingerbread 2.3.3, because of some String methods used in BaseX which are not supported by Android versions older than Gingerbread.To create an Android library project, the 'Mark this project as library' item need to be checked. An Android library is not executable and therefore does not need the creation of an Activity, which is the reason why this item is unchecked in the picture above.<br>After finishing the dialog Android Studio creates an empty library project with all needed folders and files.<br>The next step is to copy the BaseX code into the created project folder 'src/main/java'.<br>Except the package 'gui' and the Java file 'BaseXGui.java' inside the 'src.main.java.org.basex'[https://github.com/BaseXdb/basex/tree/master/basex-core/src/main/java/org/basex] package can be copied into the project folder. Android does not support Java AWT and Swing, which is the reason for not copying the gui package.
administrator, editor
10

edits

Navigation menu