开发者

Want to use Python Libraries in Android

I am building an application for Android. It will interface with some C++ libraries using Android NDK through JNI. There are also some libraries that are written in Python that I want to call from my Android application (e.g. NTLK). How can I do that?

Please note that SL4A (Scripting Layer for Android) is something different. It allows you to build an application using a scriptin开发者_StackOverflow中文版g language like Python, Lua etc. In my case the application will be in Java but will need to call code that has been written in Python. Is this possible in an elegant way?


I recommend putting the NLP code into web services on a Linux server and calling those from android.

This is quite straight forward in a framework like django.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜