Create a new Android project in the Android Plugin for Eclipse, where
you add functionality and finish developing the application.
Prerequisites
In the Unwired WorkSpace, you need to set the SDK locations.
Task
Start Unwired WorkSpace.
Select File > New > Project.
Select Android > Android Project and Next.
Depending on the Android version you are using, the information you provide
in the next several steps may be in one or two screens.
In the Create Android Project wizard, use these values and click Next.
Project Name - enter SUP101Sample.
Verify Create new project in workspace is selected.
Verify Use default location is selected, for example, C:/Documents and Settings/user/workspace/SUP101Sample.
In the Select Build Target window, click an Android version 2.2 or higher and Next.
In the Application Info window, use these values and click Finish.
Application Name - verify SUP101Sample is entered.
Package Name - enter com.sybase.sup.samples.objectapi.
Verify Create Activity checkbox is selected and
SUP101SampleActivity is entered.
In the left-hand pane, you should see the Package Explorer with the SUP101Sample project
listed.
A Default Activity class is automatically generated.
In the Package Explorer, modify the build path to point to the correct location for the ClientLib.jar,sup-client.jar, and UltraLiteJNI12.jar files for the project:
Select the SUP101Sample project.
Select Project> Properties > Java Build Path.
Select the Libraries tab.
Click Add External JARS and browse to C:\Sybase\UnwiredPlatform\MobileSDK\ObjectAPI\Android.
Select all the JAR files, then click Open.
Click OK.
In the Package Explorer, modify the Java Compiler compliance level:
Select the SUP101Sample project.
Select Project > Properties > Java Compiler.
Select the Enable project specific settings
checkbox.
From the Compiler compliance level list, select
1.6.
Click OK.
Add a compiler resource to the root directory of your Android project:
In Windows Explorer, browse to the C:\Sybase\UnwiredPlatform\MobileSDK\ObjectAPI\Android directory.
Copy the armeabi folder.
In Package Explorer, select SUP101Sample and add a
libs folder.
In the libs folder, paste the
armeabi folder.
In the Package Explorer, add user permissions to the project:
Expand the SUP101Sample project.
Double-click the AndroidManifest.xml file.
Select the AndroidManifest.xml tab.
Add permissions to the AndroidManifest.xml file as a child element of
<manifest>.