java


Is there any way to call python code in android develop without installing sl4a?


I have found some ways to using python to build android app.But all of them need to install sl4a and pythonforandroid.
It is so complicated,so is there any way to package sl4a to my android app project,and once I install the apk,I needn't install sl4a any more.
You can use Kivy at following link :
Python for Android
It will can help u have a look to the following topic :
How can I integrate a Python code in the Android Java app?
hope this help you.
You can do this. What it comes down to is packaging the Python interpreter (compiled by the NDK) in your app, and starting it via the standard NDK mechanisms. This is the same thing that e.g. Kivy does, but you'd be adding the code to your own app rather than (like Kivy) using a java bootstrap then letting the Python manage everything else.
One option, which has seen a little discussion/development recently, is to use python-for-android to build all the python components, then copy them into your java project (and add the code to handle it). This is possible, but not currently as easy as it could be, you'd need to look into how it works internally to get the outputs you need.
Another option that is probably easier right now if you don't need compiled code beyond python itself is to directly use the precompiled python binaries of the CrystaX NDK, in which case including the python binaries comes down to only adding them to your Android.mk. You'd still need some C and NDK code to interact with the interpreter, but the process is quite straightforward.
(SL4A has some Android build tools of its own, which you could also use for this, but I don't know what you'd need to do to integrate it as I think SL4A does extra things on top of just having the python interpreter present).

Related Links

Android days left
GWT Button onClick() return a value
Java HttpURLConnection issue with Streaming large amount of data from MySQL
Hibernate validator validate empty field where is not #NotEmpty
How does a browser deal with applets?
Conditional aspect using a configuration file
Log4j, disable appenders dependent on environment
How can I send the Object class to server with Jackson?
SimpleXML on Android and error while deserialization
JavaFX jar with dependencies bundled
SQLite encryption in java using Hibernate
How to set the fontsize of text in JTextpane using double value in Java Swing
RequestMapping does not occurs
Get separate record for each value
Vaadin multisession troubles
jsp JSTI foreach: array from request.setAttribute

Categories

HOME
java
pandas
yii2
arduino-uno
multithreading
minimum-spanning-tree
hashmap
lodash
grep
objectgears
rsyslog
adb
survey
yum
wamp
uber-api
elasticsearch-hadoop
nstableview
postgres-xl
ibm-odm
foselasticabundle
finite-automata
predix
arabic
ehcache
sylius
kvc
crosstab
bootstrap-material-design
fgetcsv
nhapi
ping
ejabberd-module
ecto
key-value-observing
contact-form
winrt-xaml-toolkit
hybridauth
accelerate-framework
vxworks
email-templates
galen
node-sass
hibernate-tools
tizen-native-app
csound
iso8601
redundancy
pycaffe
watchconnectivity
time-and-attendance
phishing
bstr
websitepanel
sigabrt
jqgrid-formatter
quicklisp
arcanist
sailfish-os
ami
python-green
fscommand
nstableviewcell
qpainter
mdt
asp.net-web-api-odata
gulp-less
html-helper
neolane
phpthumb
mechanize-ruby
uv-mapping
commoncrypto
access-rights
google-cloud-save
odata4j
back-stack
dataadapter
ember-app-kit
first-responder
osql
netbeans-6.9
libc++
xmemcached
inotifycollectionchanged
propagation
locate
memory-size
project-hosting

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App