Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm developing an application for manage security alarms and I have to work with the alarms API, an old code written in C#. The requests for disarm, arm...the alarms have to be done in Pascal (STDCALL) and I don't know how combine Android and Pascal.
Can anyone help me?
A lot of thanks.
The only way I know to execute Pascal code in Android is to compile a Free Pascal/Delphi shared library(.so) and access its interface through JNA/JNI. Of which two JNA seems to be the far less difficult option:
https://github.com/java-native-access/jna
You can't use Android's NDK tools to build such a native library as it is only C/C++. So you need to use an external compiler.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a dll C# Libraries and want to use it through my android app, I managed to run it through java but it didn't work through android, the way I used and the Exception raised is described here, but I found through searching that this way won't work with android, also I found a lot of questions about that issue but didn't got any suitable answer (e.g here, here, ...etc), So, I just want a clear answer, can I or can't? and if I can using any work around, How ?
Dynamic-link library (also written unhyphenated), or DLL, is Microsoft's implementation of the shared library concept in the Microsoft Windows
Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google.
So no, you cant. Teoretically in some kind of VM, still - no.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I try make an android app with java and have a problem with searchIndex
I just don't know ho to make it right
I already used lucene in C# but I want to know if I could use it in java.
Yes there is also a library of Lucene in java and you can use it in android applications.
But there is a native full text search feature called FTS and and also new version FTS4 in SQLite , which you can use in android easily and it has a better performance and response time since its running natively and so much faster because uses less memory than java Lucene impelementation.
You can see a sample here : http://www.mysamplecode.com/2011/11/android-searchview-using-sqlite-fts3.html
and also full documentation here : http://www.sqlite.org/fts3.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
What is the most efficient way to convert iOs mobile application into Android? A friend and I are working on an app and we would like to know what is our options?
Can we translate line by line the code? What can we do?
There is no conversion technique that you can just run your pre-existing IOS source code through and get Android source code
Unfortunately, that means you guys are going to have to decide if it is really worth the time and effort on porting.
Here are some resources for further reading:
http://www.datasprings.com/resources/articles-information/guide-for-porting-an-ios-app-to-android
Porting ios apps to android
You can write the codes by c language which are not related to UI, and call them by JNI on Android. If you did it, I think you can keep a same copy on IOS.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am new in embedded world. May be I am wrong. But I want a relevant solution.
I just want to embed java environment into a MCU for ease to develop application. The MCU vendor have provide the C library for lcd, sensor, spi, buttons, UART, DIO etc etc. Can I embed java into this ?? I mean, I want to use java on the MCU, uppon those device drivers.
Can I use or make something like this??
I have seen the simple Real-Time-Java it's very tiny.
Thank you.
Take a look at NanoVM and Bajos.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am looking for the right "Hook" on Mac OS X, Linux and Windows to detect when a folder and/or file gets updated.
I am using JAVA and Object-C for the MAC.
Thanks in advance.
Also if you have any tips to go on doing this, will be truly appreciated.
Thanks in advance.
On Linux you should look at inotify
I'm not aware of any Java library that does this stuff - especially not cross platform.
On Windows the Win32 API offers such functionality though with the ReadDirectoryChanges or FindFirstChangeNotification function.
Writing a small c wrapper that's called per JNI seems not too hard - the problem is probably finding out how to implement the basic featureset that can be supported by all three platforms.