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
29
votes
4 answers

Difference between Kivy and PY4A

I'm new to android development, and I have had some experience with Java, C#, Python, etc. Python being my favourite, I'd like to code Android app with it. Then I saw this question: Is there a way to run Python on Android? The most voted answers…
octref
  • 6,521
  • 7
  • 28
  • 44
28
votes
5 answers

Why doesn't Python hash function give the same values when run on Android implementation?

I believed that hash() function works the same in all python interpreters. But it differs when I run it on my mobile using python for android. I get same hash value for hashing strings and numbers but when I hash built-in data types the hash value…
Balakrishnan
  • 2,403
  • 2
  • 26
  • 47
28
votes
3 answers

What are the limitations of Python on Android?

I am getting ready to start a little Android development and need to choose a language. I know Python but would have to learn Java. I'd like to know from those of you who are using Python on Android what the limitations are. Also, are there any…
Dave K
  • 678
  • 1
  • 7
  • 14
25
votes
2 answers

QPython or Kivy for Android programming with Python - producing installable apk

Having read several Q&A's on SO, I realize that one has 2 options i.e. QPython and Kivy to do programming for Android, however, apparently both take different approaches. I am trying to validate my understanding and see if I am missing some key…
bdutta74
  • 2,798
  • 3
  • 31
  • 54
12
votes
1 answer

SL4A vs Ruboto on Android Application Development

I am thinking about creating apps on Android using JRuby (or a suitable variant of Ruby for Android). According to my research there are two current projects that support Ruby development on Android: Ruboto SL4A From the FAQ of the Ruboto wiki on…
Nosh
  • 485
  • 7
  • 24
12
votes
5 answers

Starting with Android: Java or Python (SL4A)

I just ordered an Android smartphone and want to start playing around with creating my own applications. Now the question is which language to use, the native Java or Python using SL4A (former ASE). I tend to Python, as I know it much better than…
Mad Scientist
  • 18,090
  • 12
  • 83
  • 109
11
votes
2 answers

Android: Call Python Script (via SL4A) from Java code

Is it possible to call/run a python script file from Java code on the Android platform using SL4A? Basically I have a full blown Java Android app and I have several Python scripts that scrape some information from various web pages. I would like…
Harry Muscle
  • 2,247
  • 4
  • 38
  • 62
10
votes
3 answers

Logitech Unifying Receiver Protocol?

Is there a place where I can find documentation or an SDK about the Logitech Unifying Receiver? I recently obtained a wireless mouse, which came with a Logitech Unifying Receiver (a small USB dongle that plugs into the computer and communicates with…
Michael0x2a
  • 58,192
  • 30
  • 175
  • 224
10
votes
3 answers

android python scripting: GUI?

Are there basic GUI functions in SL4A? I'd like to run a python program on Android and would need a listbox and simple dialogs (display info and get input). There seem to be simple dialogs, but I haven't found a listbox. If there isn't a…
foosion
  • 7,619
  • 25
  • 65
  • 102
9
votes
1 answer

sl4a python notify question

I have two questions regarding the sl4a scripting language. I'd like to develop a python script that will be periodically contacted by a server and post some information to the notification bar. I've successfully add message to the notification bar,…
Patrick
  • 4,186
  • 9
  • 32
  • 45
9
votes
2 answers

Writing python (or any other SL4A) in android

Can someone point me to a tutorial on using the android scripting enviornment? I've seen plenty of tutorials on how to write python code using the android API especially from http://code.google.com/p/android-scripting/wiki/Tutorials. But none of…
Falmarri
  • 47,727
  • 41
  • 151
  • 191
8
votes
2 answers

How can I package the whole python interpreter in an Android APK?

I know about SL4A and how I can run Python scripts in Android. I need to know how I can package the whole Python interpreter inside my APK so my end-users won't have to download and install SL4A before running my App. Thanks.
user713588
  • 81
  • 1
  • 2
8
votes
1 answer

Python SL4A Development

Ok - I'm feeling like a frustrated idiot. I want to state that upfront. I'm trying to get a Python/Android setup going so I can develop Python applications for Android. I've got both SL4A and the Python interpreter installed on my Android device and…
Paul
  • 537
  • 2
  • 5
  • 15
7
votes
1 answer

Want to use Python Libraries in Android

I am building an application for Android. It will interface with some C++ libraries using Android NDK through JNI. There are also some libraries that are written in Python that I want to call from my Android application (e.g. NTLK). How can I do…
Sid Kshatriya
  • 4,965
  • 3
  • 25
  • 29
7
votes
1 answer

Connect to access point using QPython?

I have a simple problem with my phone: When I get disconnected from a wifi hotspot, my phone doesn't automatically reconnect because it always thinks there is no Internet. This is because of my firewall. I'm guessing that Android phones try to ping…
Forivin
  • 14,780
  • 27
  • 106
  • 199
1
2 3
15 16