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

Invalid Jboss Datasources after redeploy
Constructing a DataSource from an InputStream or Byte array
How to view customized logs with Chainsaw?
MVP and communication between GWT widgets
How to remove line breaks from a file in Java?
Using a bean class from a servlet in a Java EE application
Can we use for-each loop for iterating the objects of Iterator type?
What does -1 from DataInputStream's read() mean?
Unable to read from the Socket Input Stream in a multithreaded environment with wait and notify
How to organize packages (and prevent dependency cycles)?
Common Java memory/reference leak patterns?
ORM: OneToOne mapping on Non Primary-Key Join column - Book and Inventory mapped by ISBN
Best Java Functor lib: JGA, commons functor, mango, or…?
Java Number comparisons
How to convert a Swing Application to an Applet?
best way to externalize HTML in GWT apps?

Categories

HOME
xamarin
arduino-uno
vim
pdf
client
osgi
hook
blogger
office365api
objectgears
jsrender
win32gui
yum
node-notifier
slurm
gitpitch
awesome-wm
spring-kafka
static-libraries
orchardcms
zebra-printers
systemc
oracle-coherence
jqwidget
firefox-webextensions
nodatime
xlsxwriter
orleans
csrf-protection
excel-2007
blazemeter
uninstall
windows-error-reporting
publish
kendo-datasource
instant-messaging
r-raster
react-chartjs
revolution-slider
restlet
neuroscience
dynamics-crm-2013
document.write
cookiecutter-django
trim
android-tabhost
bootstrap-dialog
wso2carbon
worksheet
boost-multi-index
hls.js
colorama
lift-json
android-cursor
zendesk-app
background-service
etsy
sigabrt
whois
rhino-servicebus
independentsoft
uid
freedesktop.org
hsv
intel-fortran
icu4j
ruby-2.2
wireshark-dissector
pundit
browser-bugs
php-ci
splash
mono-embedding
processmodel
fluid-dynamics
mmc
system32
inmobi
directoryservices
operator-precedence
android-nested-fragment
nsbutton
tld
comexception
jboss-weld
monomac
blending
cos
jquery-mobile-dialog
lcs
nsnetservice
broken-links
amazon-appstore
custom-backend
boost-filesystem
hirefire
file-comparison
celltable
visitor-statistic
fluent-interface
zend-translate
revisions
forums
mirah
ext3
zend-tool
privilege
django-notification
signal-handling
ajax-forms

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