Want to use Python Libraries in Android
Asked Answered
E

1

7

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 scripting 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?

Elfin answered 6/7, 2011 at 12:44 Comment(0)
S
1

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.

Starling answered 7/3, 2013 at 0:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.