Skip to Content

Create Android Project and Import Libraries

The client object APIs form the core building block of Native Object API Applications and provide the common set of APIs for consistency across device platforms, thus following the “design once and deploy anywhere” paradigm of building applications.

Client Object API categories for Native Object API Application development include:

  • Object APIs that supports access to MBOs attributes, operation execution, retrieving data, state information, and so forth. The APIs offer abstraction for accessing data from the EIS, sending operation executions to the EIS, updating and deleting data, and accessing persistent store in the object-oriented paradigm, among other things.
  • Object APIs that offer consistent access to core application services across all device platforms. The APIs provide abstraction for the complex technical details of reliable communication between the device and Unwired Server. This includes a variety of network conditions for optimal transmission of data and state information, connection APIs to the back-end infrastructure, secure access to the Unwired Server data, publishing of data notifications and processing of such notifications, data protection, and access to UI management APIs and custom UI controls, such as signature control, among other things.

Install the Android SDK, and run the eclipse.exe to start the android app development. When running the eclipse for first time it asks to set up the workspace where the project will be saved.

/wp-content/uploads/2014/02/19_385099.png

Right click under project explorer> New> Android Application Project, and provide the below details.

/wp-content/uploads/2014/02/21_385103.jpg/wp-content/uploads/2014/02/22_385104.jpg/wp-content/uploads/2014/02/23_385105.jpg

Click Finish. It creates an activity class with name “SettingsActivity”.

/wp-content/uploads/2014/02/25_385106.jpg/wp-content/uploads/2014/02/26_385107.jpg

Add the compiler and Sybase libraries to the root directory of the Android project. Copy the following files from Sybase installed directory (SDK) and paste it to the libs folder in Android project.

/wp-content/uploads/2014/02/27_385108.png               /wp-content/uploads/2014/02/30_385112.jpg

Modify the build path to point to the correct location for the ClientLib.jar, sup-client.jar, and UltraLiteJNI12.jar files for the project. Right click on project Customers> Properties> Java Build path. Click on Libraries> Add JARs…

/wp-content/uploads/2014/02/28_385113.jpg/wp-content/uploads/2014/02/29_385114.jpg

/wp-content/uploads/2014/02/31_385116.jpg/wp-content/uploads/2014/02/32_385117.jpg

Copy the object API code generated to the Customers android project inside src folder. Copy the com folder inside the Customers MBO project> Generated code> src.

/wp-content/uploads/2014/02/33_385121.jpg                                     /wp-content/uploads/2014/02/34_385122.jpg

Next


To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply