Please be aware that the SAP SQL Anywhere Forum will be shut down on August 29th, 2024 when all it's content will be migrated to the SAP Community.

I've been trying to build the android ultralite sample:

The tutorial seems to have issues -- though it could be user error!

I'm trying to use Eclipse (Helios SR2), with Java 1.6 (x86 versions), under Windows 7 x64 (SP1).

Has anybody succeeded in building the sample and running it?

asked 15 Apr '11, 15:30

Mike%20T's gravatar image

Mike T
accept rate: 0%

There is a problem in the 12.0.1 GA release of this sample. The following was added to the readme.txt in %SQLANYSAMP12%UltraLiteJAndroidCustDBreadme.txt, in the latest EBF:

The GA release of SQL Anywhere installed this sample with mixed-case
directory names, which causes build problems with Eclipse.  The following
sub-directory names in this sample should be lower case.  If that is not
the case, you should manually rename them before step 2.
We apologize for the inconvenience.

permanent link

answered 15 Apr '11, 15:53

Andy%20Quick's gravatar image

Andy Quick
accept rate: 45%

Thank you for the prompt answer!

I ended up making a new project and copying the java/jar/res and .so files over to it.

Once I added <uses-permission android:name="android.permission.INTERNET"/> to the manifest, everything worked well.

Very impressive!

Though I'm wondering if there would be an easy way to extract the JNI bindings in order to use the .so with MonoDroid (C# for Android). Any ideas?

(15 Apr '11, 16:52) Mike T
Replies hidden

It sounds like we would need to expose the JNI entry points to the shared object so that you could make calls from Mono (as opposed to Dalvik). We don't have plans to make those available, and are focusing on supporting Dalvik development.

(18 Apr '11, 10:46) Tom Slee

You've probably already got a solution now, but it's worth noting that Mono For Android now (well from versio n4.2) supports Java Binding Library projects.

Using these, it's easy to bind the Ultralitej library for use in a Mono For Android project. I've written an article on how I did it here:

(26 Nov '12, 12:29) James Lavery

Once I added <uses-permission android:name="android.permission.INTERNET"/> to the manifest, everything worked well.

I should mention that we have added this comment for the Internet permission to the Android UltraLiteJ tutorial notes in the next version of SQL Anywhere - other customers have noted requiring this permission as well.

(27 Nov '12, 10:21) Jeff Albion

Your work on Mono For Android is very interesting. Thanks James.

(27 Nov '12, 17:40) Andy Quick

I should be able to make a Java Wrapper and use JNI to access it. Not as nice a solution, but workable.

If anybody is interested, here is a blog post that shows how to do that:

permanent link

answered 20 Apr '11, 13:45

Mike%20T's gravatar image

Mike T
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 15 Apr '11, 15:30

question was seen: 4,820 times

last updated: 27 Nov '12, 17:42