In this lesson, you create a new Android project through the Eclipse Integrated Development Environment.
Copy the Android libraries to your Android CustDB sample directory.
Open a command prompt, change to the %SQLANYSAMP12%\UltraLiteJ\Android\CustDB\ directory, and then run the following command:
setup.bat |
The UltraLiteJNI12.jar and libultralitej12.so files are copied into the Android\CustDB\libs and Android\CustDB\libs\armeabi directories.
Run Eclipse.
The default application path is C:\Eclipse\eclipse.exe.
In the Workspace field, specify a working directory that is not your CustDB sample directory, and then click OK.
Import the CustDB project into Eclipse.
Click File » Import.
Expand the General directory, and then click Existing Projects into Workspace. Click Next.
In the Select Root Directory field, type %SQLANYSAMP12%\UltraLiteJ\Android\CustDB. Select Copy Projects Into Workspace, and then click Finish.
Make sure that the appropriate Android SDK path is specified in Eclipse.
You must install an Android SDK before specifying the path. For more information about tutorial prerequisites, see Tutorial: Building an Android application.
Click Window » Preferences.
In the left pane, click Android.
In the SDK Location field, type the location of the Android SDK and then click Apply.
A list of available build targets appears.
Click OK.
Make sure that the UltraLiteJ library path is specified in Eclipse.
Click File » Properties.
In the left pane, click Java Build Path » User libraries.
Click the Libraries tab.
Click UltraLiteJNI12.jar, and then click Edit.
From your working directory, open \CustDB\libs\UltraLiteJNI12.jar.
Click OK.
Add the path to your UltraLiteJNI Javadoc documentation to the project.
In the left pane, click Javadoc Location.
Click Browse, and then open %SQLANY12%\UltraLite\UltraLiteJ\Android\html.
Click OK.
Click OK to close the window.
Build the project.
Click Project » Clean, and then click OK.
The project should build without errors occurring, but you may notice warnings listed under the Problems tab.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |