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
1
vote
1 answer

Retrieving WiFi data with Python on Android

I'm looking to get my WiFi signal strength on Android using Python. I can't seem to find any Python wifi monitoring modules that aren't operating system specific.
Damien
  • 563
  • 2
  • 6
  • 10
1
vote
2 answers

python sl4a unicode (Android)

Does anyone have any experience with this? I have been using python 3.2 for the last half a year, and my memory of 2.6.2 is not that great. On my computer the following code works, tested using 2.6.1: import contextlib import codecs def…
beoliver
  • 5,579
  • 5
  • 36
  • 72
0
votes
3 answers

SL4A Android x86 installation

I am currently developing a Android Application. I couldn't install the Android Python APKs like the sl4a.apk and the PythonInterpreter.apk on my Android x86 emulator. I read that it is possible to recompile the APKs with NDK but I have not found a…
Optimus
  • 15
  • 1
  • 8
0
votes
1 answer

Using tasker/sl4a/python to send a text by speaking

I am using tasker to send send a text when I speak. However, my .py file does not seem to be saving my speech to the clipboard as I though it would. You can see that I am first saving the clipboard as a variable to reset it later in case it is…
drewmey
  • 1
  • 1
0
votes
2 answers

Passing Data to a website via SL4A python script

Help please! I need to post some text data to an e-mail adress or web site form using s4la python how can i do that(without opening e-mail client)? Just to be clear: This will be a "webshop tool" that reads info from a qr code and sent it to the…
Varga Károly
  • 75
  • 1
  • 6
0
votes
2 answers

How to install interpreter for SL4A in offline

I'm really interested in android scripting on perl/python/lua at my current job, but I'm also very limited in traffic consumption and I may need frequently repeat interpreters install procedure after reflashing android devices. So is there any way…
kravitz
  • 973
  • 2
  • 10
  • 22
0
votes
1 answer

keyboard not working on sl4a interpreter on samsung galaxy y s5360

The soft keyboard is not working on my mobile in the sl4a environment. The keyboard is present there but on taping the keys nothing happens. Please kindly help.
Rishi
  • 1,987
  • 6
  • 32
  • 49
0
votes
2 answers

How to build Python Eggs for Android SL4A?

Does anyone have any tutorial on How I should go about building a Python Egg for installing it in my android phone ? I want to install the library - Hachoir (https://bitbucket.org/haypo/hachoir/wiki/Home) which parses files. The library is…
Amritha
  • 795
  • 3
  • 9
  • 26
0
votes
2 answers

Running scripts in SL4A android

I have currently installed the SL4A on my emulator and it works fine. I am able to push my scripts from my computer on the the sdcard of the emulator and run it successfully on the emulator. Now I want to know how to run these scripts from the…
Amritha
  • 795
  • 3
  • 9
  • 26
0
votes
3 answers

How do I change the shortcut icon for sl4a scripts?

I have managed to write some simple scripts in python for android using sl4a. I can also create shortcuts on my home screen for them. But the icon chosen for this is always the python sl4a icon. Can I change this so different scripts have different…
Dave31415
  • 2,846
  • 4
  • 26
  • 34
0
votes
1 answer

ADB push command android emulator

I am trying to import a python library into SL4A. From my understanding, the easiest way to do this is to import the zipped files (egg files) of the python library into the SD Card and then import it into SL4A. Since I do not have an android device…
Amritha
  • 795
  • 3
  • 9
  • 26
0
votes
2 answers

Unable to connect to SL4A server

I'm unable to connect to the Android Scripting layer server. When I run the command I get the following error: > >>> a = android.Android() Traceback (most recent call last): File "", line 1, in File "android.py", line 34, in >…
fixxxer
  • 15,568
  • 15
  • 58
  • 76
0
votes
3 answers

Installing SL4A Python for Android

I am totally new to Android and was looking to try out Android with python. I downloaded the Android SDK from this link: http://developer.android.com/sdk/index.html for MacOSx 10.6.7. After downloading, installing and adding the Android 2.2 platform…
Cipher
  • 5,894
  • 22
  • 76
  • 112
0
votes
0 answers

SL4A detect the keyword on background using speech recognition

I just want to ask is possible to recoginize a keyword on background using Speech Recognition? It works when i run the qpython but wont in background i, i want if a device will heard the keyword Background
0
votes
0 answers

Python interpreter for Android

I am a intermediate python developer .I want to know how pydroid is able to run python on Android, I mean how pydroid's python interpreter works and is there a way we can create such interpreter and bind it with our gui program so that it runs on…