|
  |
  |
  |
    |
|
  |
|
           
Empress Technical News -  February 2013 Empress SDK v1.0 for Android   Introduction To address the ever-growing need for more powerful, complex, reliable and efficient database Android applications Empress Software introduced its Empress SDK for Android v1.0. Empress SDK for Android v1.0 supports the open database access standard JDBC API. The SDK helps developers create new database applications or migrate existing database applications to Android quickly. System
Requirements for Empress SDK for Android v1.0 Contents of the Empress SDK for Android v1.0                   empress_sdk_android_v1.0.zip and includes the following components: empress_sdk_android_v1.0
Empress Ultra Embedded v10.20 documentation is the standard Empress documentation in HTML format and some parts of this documentation may not apply for Android application development. The most useful parts for Android Java application development are the following sections:             A4: SQL Reference Installation Here's an overview of the steps you must follow to set up the Android SDK: Installing Empress SDK for Android v1.0 To develop Java JDBC code with Empress database, two steps are required to plug in Empress SDK with your Android Java Applications. Step One:   Add to the Java Build Path of your Android application project as shown in Figure 1
Figure 1: Add empressJDBC.jar to the Java Build Path of your Android application project 1.      the Package Explorer panel, right-click on
your project and select Properties. Step Two: Add Empress native library libjdbcbcs.so to your application project. For example, copy libjdbcbcs.so file to < PROJECT_DIR> /libs/armeabi Develop Empress
Java Applications for Android
  Figure 2: EmpressJDBCSample Directory StructureSet up Empress Working Directory on the Android
Target By default, Empress database for Android will create a directory " empress/tmp" under the system temporary directory on the device. It gets the system temporary directory by querying the values of Java system property " java.io.tmpdir" . If you want to specify an application specific location for Empress working directory, you can do so by calling:   com.empress.jdbc.EmpressDriver.setWorkingDir(" Absolute_PATH" ) before making JDBC connections in your program. For example: Class.forName(" com.empress.jdbc.EmpressDriver" )   com.empress.jdbc.EmpressDriver.setWorkingDir(this.getApplicationInfo().dataDir) Connection con = DriverManager.getConnection(database_url, " USERID" , " PASSWORD" )   Instead of Summary   Empress Software Inc. |