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

Using JRuby to directly call Android Java Methods

I've been recently exploring how to access Android's Libraries via JRuby in SL4A. I know it is possible to design apps with Ruboto, but I just want to right a simple script to access APIs that current SL4A doesn't offer. I can import normal jars and…
Clement
  • 367
  • 2
  • 18
6
votes
1 answer

What are the steps I need to follow to be able to write and edit python programs on my Android phone?

I'm a beginner, with programming and Python. What I want to do is read and follow examples in books like 'Learn Python the Hard way' and 'Hello world: computer programmming for kids and others'. I want to be able to do the example problems on my…
Calydon
  • 251
  • 1
  • 9
6
votes
2 answers

send events from python to javascript using sl4a

I wanted to know the answer to a simple question but i have'nt found a good one (i've google it for hours :) ) I'm playing with the sl4a with python and i can send events from js to the python script, but the js is not catching the eventPost i put…
Tony
  • 3,425
  • 10
  • 30
  • 46
6
votes
1 answer

Launch android app from SL4A script?

I have the following in /sdcard/sl4a/scripts/twitter.py import android droid = android.Android() droid.launch('com.twitter.android') And if I run it in the console or the background, it immediately exits with code 1, and the log file is empty. If…
Nate Parsons
  • 14,431
  • 13
  • 51
  • 67
5
votes
3 answers

Python for IOS or Android

I have been looking at the different packages for python on android and IOS as i am going to be upgrading my phone soon. However, i dont know which OS to go with. For android they have the SL4A package, but for IOS they have their equivilent.…
IT Ninja
  • 6,174
  • 10
  • 42
  • 65
5
votes
2 answers

Installing Perl Modules on Android OS

Are there an options to install Perl modules like LWP on Android (on SL4A environment ). Also, are there prepackaged Perl modules that can be installed on Android, and is there an option to see which modules are installed using the Android Debug…
smith
  • 3,232
  • 26
  • 55
5
votes
1 answer

Scripting layer for Android - LibGDX

I've been writing a full game engine on top of LibGDX for sometime now and had written almost every single game object in Javascript (I created a composite based game object system). For the JS interpretation, I used the Rhino engine which on my…
Jason Welch
  • 336
  • 2
  • 14
5
votes
1 answer

Dalvik error with JRuby with SL4A

I'm getting this error when trying to run a jruby script on SL4A Dalvik VM unable to locate class 'org/jruby/Main' java.lang.NoClassDefFoundError: org.jruby.Main I see the jruby.jar file is installed # find…
sal
  • 23,373
  • 15
  • 66
  • 85
5
votes
1 answer

How to stop a WebView launched from SL4A from hiding the notification bar?

I'm building a UI for my little Python SL4A script that uses WebViews, but I find a little annoying that when I launch my WebView from the SL4A script (droid.webViewShow(...)) the Android notification bar gets hidden! Here's some code: import…
Juan Gomez
  • 1,508
  • 1
  • 11
  • 21
5
votes
1 answer

How to execute Python script from Java code in Android

I'm trying to make an standard Android application execute a python script that could return values to Java, but I'm facing a lot of issues. Jython doesnt support this in the Android environment, SL4A is a dead project, Kivi seems to be an full…
Israel Fonseca
  • 1,082
  • 10
  • 22
5
votes
1 answer

android.Android() on QPython error

I'm running SL4A Python 2.6.2 interpreter. This code works without problem: import android droid = android.Android() But when I'm running QPython 2.7.2 interpreter on the same machine, the same code gives me error: AttributeError: 'module' object…
Damian Melniczuk
  • 393
  • 6
  • 18
5
votes
4 answers

Running an Android phone as a stable webserver (for a Python CGI script)

I'm new to Android. I have a Python program that is both a CGI script as well as an SMS-based interaction system for a small database. It is an extremely low demand system (a handful of users) being run by a grassroots organisation. But it requires…
ShankarG
  • 1,105
  • 11
  • 26
5
votes
1 answer

setParameters failed when initializing android webcam with python and SL4A

I'm using the SL4A platform on an android 4.0 tablet and attempting to initialize a webcam stream using the droid.webcamStart() method found here: http://code.google.com/p/android-scripting/wiki/ApiReference#webcamStart my problem is when I execute…
sadmicrowave
  • 39,964
  • 34
  • 108
  • 180
4
votes
1 answer

speech recognition reduce possible search results

I have started with Speech recognition using android, sl4a and python and so far, it works fine. My user is just supposed to input numbers between 0 and 9 with his voice. Is there a way to tell android to only search in those number and therefore…
gpasse
  • 4,380
  • 7
  • 44
  • 75
4
votes
3 answers

is it possible to create a complete Android app with SL4A?

I would like to create an App with python, but i need that it includes all it needs in order to operate correctly. I have saw this post about the ability to sell the app via and Market, but it didn't have a final answer there. Currently the best…
Hanan
  • 1,169
  • 3
  • 23
  • 40
1
2
3
15 16