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
0
votes
2 answers

kivy or something else for android UI

I am learning to program (python 3.x) and was wondering what would be best to learn for making android apps/games. I dont know anything about UI really but have heard that kivy? Is on android. Is that worth learning or should i use something…
0
votes
1 answer

the program itself runs but all dialogs created are not called

I tried creating a few dialogs for a program.. thing is when executed. nothing happens, so I tried the basic hello world getInput code below: import android droid = android.Android() name = droid.dialogCreateInput("Hello!", "What's your…
Sean Perez
  • 99
  • 1
  • 12
0
votes
2 answers

Extend the SL4A Android object with a custom stop method

I'm running Python on Android using SL4A. I have a script to calculate an average that looks like this: import android droid = android.Android() var1 = 10 var2 = 20 var3 = 30 average =…
user1741274
  • 759
  • 3
  • 13
  • 25
0
votes
1 answer

Android Python Multiple Threads

Hello I am having issues in regards to running threads in Android with Python SL4A. I am trying to run two threads at the same time, but seem to be having issues from threading import * import time def func1(): while True: …
0
votes
2 answers

not working python scripts in Py4a in SL4a

What device(s) are you experiencing the problem on? Amoi N821 What firmware version are you running on the device? Android 4.1.1 What steps will reproduce the problem? Create the following Python script: import android droid =…
0
votes
1 answer

Is it possible to run some custom commands using sl4a?

I am actually working on a demo in which i want to do some tasks when i got triggered from sl4a but according to my understanding it can only call android api's but what if i want to do some custom task or you can say that define a command that will…
varun bhardwaj
  • 1,522
  • 13
  • 24
0
votes
1 answer

setting SL4A in PyDev(Eclipse)

I'm working with sl4a.I chose to work with my laptop remotely.I followed the instructions below and everything is working fine. 1.copy 'android.py' into site-packages of python 2.start private server in sl4a 3.adb forward tcp:9999 tcp:58755 4.export…
tez
  • 4,990
  • 12
  • 47
  • 67
0
votes
1 answer

Event handler for OptionsMenuItem in fullscreenwrapper2 and sl4a

How to make Event handler for OptionsMenuItem in fullscreenwrapper2 and sl4a? FullScreenWrapper2App.get_android_instance().addOptionsMenuItem("Exit","exit",None,"ic_menu_revert") # adding exit options successfully, but how to make event handler…
Yuda Prawira
  • 12,075
  • 10
  • 46
  • 54
0
votes
1 answer

Toast, notification simultaneously in Android

I want to execute the Python scripts(that displays a toast and notification) in Android using sl4a. Can I show a toast message and a notification simultaneously? I m using an emulator for testing.
user1637909
  • 173
  • 1
  • 3
  • 14
0
votes
1 answer

Executing Python/Ruby script in Android using eclipse

I want to execute Python/ Ruby/ Javascript scripts in an Android project. I need to develop using eclipse. I saw about SL4A. Could someone guide me how to do this? Thanks!
user1637909
  • 173
  • 1
  • 3
  • 14
0
votes
2 answers

Android - Resuming application state - SL4A

please dont harpoon me for a noob-ish question. I am working on an android application using SL4A, when my application starts it runs in the background while the script is being executed. I'm not sure where to start but each time I click my icon, …
0
votes
3 answers

Sl4A Selecting running application from notification window

I have a SL4A program I have written. I have one issue before i'm ready to publish it. For some reason when the app is running, if I home screen out of the app, I see it running in the notification area, but when I select it nothing happens. …
0
votes
1 answer

SL4A import fails

At the Python terminal, I can run: import random random.randint(1,6) It gives a number, as expected. However, I save this script as random.py and it fails to run: import random print random.randint(1,3) It says "AttributeError: 'module' object has…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
0
votes
2 answers

SL4A don't work in terminal ide of my android

I have HTC One X, with Android 4. I have install sl4a, python, scapy and terminal IDE on my smartphone. All is alright, python in terminal IDE work well with scapy as root. The problem happens when i use SL4A. droid=android.Android(('127.0.0.1',…
0
votes
2 answers

How to use tweepy module with sl4a and py4a?

I am trying to build a twitter client written in python using tweepy and make it run on sl4a (using py4a) on Android. But i seem to fail to import tweepy module in my main script. The script does not run. Please tell me the correct way to use tweepy…
Dev Uberoi
  • 139
  • 1
  • 2
  • 10
1 2 3
15
16