Questions tagged [sl4a]

Scripting Layer for Android, a library for executing scripting languages on Android

Scripting Layer for Android (SL4A) brings scripting languages to Android.

Currently supported languages are:

Soon: Scheme and Squirrel

233 questions
4
votes
5 answers

Is there a way to run SL4A script from a directory elsewhere?

sl4a has all of its scripts under /sdcard/sl4a/scripts Is it possible to run a script that lives elsewhere: e.g. from /sdcard/dropbox/pyscripts [wink wink]
dbbd
  • 864
  • 1
  • 8
  • 23
4
votes
2 answers

Android Bluetooth Connection Problems

I'm trying to get a simple python script running on my Andorid phone (using SL4A) to connect to a BlueSMiRF bluetooth modem (based on an RN41 device), however no matter what I try I keep getting the following error when I try to…
Koisto
  • 63
  • 1
  • 3
4
votes
4 answers

Android and Python

Can I port existing python scripts on android using SL4A or ASE ? What I specifically want to do is to create an android application with normal UI elements and run the python scripts from the application itself, get the output and display it. Is…
Amritha
  • 795
  • 3
  • 9
  • 26
4
votes
3 answers

Can I sell my SL4A app on Android Market

I want to develop an application in Python for Android using SL4A and I want to know whether is possible to sell it as an application on Android Market.
mrgorefest
  • 81
  • 5
4
votes
0 answers

SL4A, PythonForAndroid and Android 7.0 Nougat

I have got information for SL4A first from https://github.com/kuri65536/python-for-android SL4A : sl4a-r6.1.1-arm-debug.apk PY4A : PythonForAndroid-debug.apk There are installable APKs for sl4a - r6.1.1 version and python interpreter - r26…
user518314
  • 51
  • 3
4
votes
1 answer

Interfacing android usb port with sl4a python

i am trying to interface an external hardware with my android device by using python through sl4a, can you guys tell me how i can read and write data from and to usb port? i have tried pyserial module, but what i found is, it needs a usb to rs232…
Alok Saini
  • 321
  • 7
  • 18
4
votes
1 answer

Running a Perl script on Android

I need to run a Perl script (isohybrid.pl) from my Android app. I came across perl-android-apk project which seems just what I need. It comes as an eclipse project and you can build what you need from this base. The problem is that I need this…
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
3
votes
1 answer

Reading GPS values with Python in SL4a does not work

So I have made this piece of code to get values of GPS location, date and time. And then I will try to make them in a JSON and send them through Wi-Fi to a server. Anyway, the problem is it always reads previous location values. It always reads the…
raduq
  • 97
  • 1
  • 11
3
votes
2 answers

Android cgi web server write files and loading perl scripts

I want to be able to run a cgi application on my samsung galaxy tablet running android 3.2. I have installed GroomDroid, SL4A, and PerlForAndroid. I put my groom.conf file in my /sdcard directory and start GroomDroid. I put my perl scripts in the…
Mike Lodder
  • 31
  • 1
  • 3
3
votes
1 answer

Android SL4A: how to link to relative scripts in HTML/javascript app?

OK, so I have tried three methods to be able to add external javascript and CSS files to my SL4A app. I am on 2.3 Gingerbread (cyanogenmod with google apps) on a ZTE Racer from 3UK, and using SL4A r4, with android python 2.6.2 (where…
tehwalrus
  • 2,589
  • 5
  • 26
  • 33
3
votes
4 answers

How to make android widgets using python?

Is there any way to make widgets with Python on Android? I mean, that I know only Python, HTML, DOM, JS, maybe jQuery and nothing more (not C, Java or something). Maybe it's simple? I honestly searched stackoverflow but search returned no answers…
Крайст
  • 776
  • 1
  • 9
  • 22
3
votes
2 answers

Way to use something like PyAutoGUI on Mobile?

I'm currently using Qpython and Sl4A to run python scripts on my Droid device. Does anybody know of a way to use something like PyAutoGUI on mobile to automate tapping sequences (which would be mouse clicks on a desktop or laptop)? I feel like it…
wbhyatt
  • 43
  • 2
  • 5
  • 12
3
votes
1 answer

How to install sl4a from the new website?

I am wanting to install sl4a on my android for a project that I am working on but I can't seem to figure out where the apk is. I understand that there used to be a google project site and the apk was on the homepage, but after the site moving to a…
Ruarri
  • 105
  • 1
  • 2
  • 11
3
votes
1 answer

QPython development environment using mac or windows

Being new to QPython, didn't find any reference about developing on a Mac or Pc, eventually deploying the code on the Android device. In contrast to developing the code itself on the Android device which seems very awkward specially for larger…
syberkitten
  • 234
  • 4
  • 9
3
votes
1 answer

SSL 480 error in python Requests

I have scripts relying on the python "Requests" library. Two different scripts relying on the same lib all throw the same error (Tweepy crashes because of it, as does a simple HTTP GET): xtras/python/requests/api.py", line 44, in request …
user2372996
  • 73
  • 1
  • 2
  • 8
1 2
3
15 16