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

NoSuchMethodError while parsing xsd to generate classes using JAXB
Hibernate using sql call for each row to fetch relationship - instead of aggregating to one IN clause
How do I make a local variable increase consistently in a recursive function having more than one calls?
Intellij IDEA : Spark code running results in java.lang.VerifyError
JavaParser comparison
How To use setOnItemClickListner multiple times in a ListView?
NullPointer exception in a Spring Rest Controller test - Java
Most suitable Java Collection for duplicate elements
Android Custom SeekBar with custom circles
Jython--Exception in thread “main” IOError: (2, 'File not found ')
black activity giving error android studio
Spring Boot running java and web content on different ports in a single application
List in Android: Rename duplicated items
unsupported major minor version 51.0 error in ubuntu [duplicate]
Tab's full tile is not displaying in Tablayout in android
Using Android MediaPlayer Class in other Classes

Categories

HOME
pypi
reflection
isabelle
reserved
cplex
spagobi
jpeg
disassembler
enterprise-library-5
offline
postgres-xl
fortumo
iolanguage
tostring
plunker
google-search-api
telerik-reporting
format-specifiers
microsoft-r
spark-jobserver
strncpy
airconsole
restlet
angularjs-factory
mapzen
ruby-on-rails-3.1
http-redirect
eclipse-gef
sas-jmp
wptoolkit
youcompleteme
worksheet
clean-architecture
dandelion
tropo
knockout-components
lift-json
knpmenubundle
zendesk-app
savon
multi-level
gstreamer-0.10
persist
react-native-listview
essence
suffix-tree
oauth2client
goose
ios8-today-widget
separator
intel-fortran
e10s
npapi
formatjs
offloading
google-style-guide
javafx-webengine
asp.net-web-api-odata
document-classification
php-5.4
jubula
access-rights
inbox
jmapviewer
comaddin
selected
isnullorempty
mt
word-processor
viewswitcher
vdsp
w3wp.exe
wise
infrastructure
suppress
bespin
fixed-width
webkit.net
thread-local-storage
commodore
caching-application-block

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