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

Mysql query to truncate data while inserting
Java Server Example Errors
java subclass: multiple constructors inherited from abstract superclass
Why does calling remove() on an iterator give a ConcurrentModificationException?
Change the background's color of RibbonApplicationMenuEntryPrimary (Flamingo)
Japanese characters in file appearing garbled after changing Formats (Region & Langauge) in Windows English OS to Japanese (Java application)
Building JAR that includes all its dependencies
Apache commons untar: IllegalArgumentException with getNextTarEntry
source code from APK
Automatic conversion of `for (int i=0;i<list.size();i++)` to enhanced for / for-each loops? Find enhance-able for loops?
Retrieve text from html file in java
When to use abstract classes and when to use interfaces [duplicate]
Java app key shortcut
Mapping DataTypes from C to Java
How to start writing a front end for spring web service
Why can I use .equalsIgnoreCase(“anoterString”) without assigning it to a variable or within a control flow statement?

Categories

HOME
clips
tizen
json.net
react-redux
electronics
flyway4
reveal.js
numeral.js
dtrace
iron-router
interop
ehcache
firebase-crash-reporting
angular2-aot
one-to-many
fopen
elasticsearch-ruby
primitive
newline
frame
data-manipulation
subset-sum
android-kernel
mozilla
gammu
atl
nssegmentedcontrol
plsql-psp
disassembling
withings
impersonation
ruby-on-rails-3.1
flashair
komodoedit
composite-key
mcafee
account-kit
libpng
persist
sigabrt
testng-dataprovider
itextpdf
marching-cubes
emailrelay
mono-embedding
sankey-diagram
nsight
bridge.net
bigbluebutton
fscommand
rake-task
c3
xc16
openexr
android-radiobutton
navigationservice
dealloc
java.nio.file
stxxl
terminal-services
type-equivalence
flashvars
android-hardware
wsdl-2.0
hamiltonian-cycle
venn-diagram
fireworks
django-tagging
table-footer
jmock
sortable-tables
routedevent
castle-monorail
uimenucontroller
private-members

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