Giter Club home page Giter Club logo

damonkohler / sl4a Goto Github PK

View Code? Open in Web Editor NEW
2.4K 306.0 804.0 302.31 MB

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.

License: Apache License 2.0

Java 5.83% C 36.09% Shell 1.54% JavaScript 0.03% Python 24.75% C++ 0.81% XSLT 0.03% Ruby 0.04% Lua 0.17% CSS 0.01% Perl 27.55% Objective-C 1.36% Emacs Lisp 0.52% Assembly 0.89% eC 0.01% Prolog 0.10% OpenEdge ABL 0.24% R 0.01% Visual Basic 0.01% Vim Script 0.01%

sl4a's Introduction

#Scripting Layer for Android (SL4A)

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface that makes it easy to get things done.

Scripts can be run interactively in a terminal and in the background. Python, Perl, JRuby, Lua, BeanShell, JavaScript, Tcl, and shell are currently supported, and we're planning to add more. See the SL4A Video Help playlist on YouTube for various demonstrations of SL4A's features.

SL4A is designed for developers and is alpha quality software.

##Disclaimer

  • Even though a lot of contributors are working for Google, this is not an official Google product.
  • SL4A is no longer under active development. However, some forks of this project may be.

##Documentation

The original Google Code wiki has been converted to Markdown and is available in the wiki branch. A few of the most important pages are:

##Issues

Issues have been migrated from Google Code. However, this probject is no longer under active development. Consider responding to and filing new issues against an active fork.

##Support

Support for SL4A is provided by the community on the project mailing list.

sl4a's People

Contributors

damonkohler avatar igor-karp avatar meaneye avatar p5p avatar pdubroy avatar raaaar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sl4a's Issues

Erlang support

From @GoogleCodeExporter on May 31, 2015 11:31

What should be supported?

Erlang/OTP!

http://code.google.com/p/erlang4android/

This already a project that brought Erlang to SL4A; I just want to see Erlang 
adopted into the android-scripting project itself, for better support!

Original issue reported on code.google.com by [email protected] on 27 Jan 2013 at 4:05

Copied from original issue: damonkohler/android-scripting#675

PIL module please

From @GoogleCodeExporter on May 31, 2015 11:31

What should be supported?

Python Imaging Library (PIL)

I'm looking for a way to convert .jpg into .pcx



Original issue reported on code.google.com by paulherweg on 17 Jan 2013 at 7:45

Copied from original issue: damonkohler/android-scripting#674

sl4a python apk wont exit

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
All Devices

What firmware version are you running on the device?
All Firmwares

What steps will reproduce the problem?
1. compile python script into eclipse apk
2. install and run on phone
3. exit applicaion

What is the expected output? What do you see instead?
Expected: program quits, so one can then re-run application.
Actual: program quits... when restarted, last page viewed comes up, application 
does not restart until user goes to "settings:applications:<yourapp>:forceQuit

What version of the product are you using? On what operating system?
All versions, on windows, linux, and android.

Please provide any additional information below.
I am trying now to have the script CRASH close [ie: python:
import glob
end=glob.glob('abcdefg.kakaka')
print(end[1])
]

this should crash script, yet not until invoked within script... [another eg:
import urllib2
request=urllib2.Request('http://nonexistantsite.com/doesntExist',None)
end=urllib2.urlopen(request)
]

This had worked for a day.... but then stopped.  it really sucks having your 
users goto SETTINGS:APPS:FORCEQUIT

Original issue reported on code.google.com by [email protected] on 6 Oct 2012 at 10:08

Copied from original issue: damonkohler/android-scripting#667

beanshell interpreter crashes

From @GoogleCodeExporter on May 31, 2015 11:31

Samsung Galaxy S III SGH-T999

Cyanogenmod 10

What steps will reproduce the problem?

1. Get the beanshell addon.
2. Tap Install.
3. In SL4A, start a beanshell interpreter.

What is the expected output? What do you see instead?

Expected: Beanshell starts.

Observed: Beanshell crashes, failing to find the Interpreter class.

What version of the product are you using? On what operating system?

Latest, on Android 4.2.2 Jelly Bean.

Original issue reported on code.google.com by [email protected] on 12 Apr 2013 at 12:09

Copied from original issue: damonkohler/android-scripting#680

Unfortunately SL4A has stopped - python and perl interpreters

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Nexus 5

What firmware version are you running on the device?
5.01

What steps will reproduce the problem?
1. Install SL4A and interpeters python 2.6.2 (or/and perl)
2. View interpreter Python (error when typing anything)
3.

What is the expected output? What do you see instead?
blank black screen

What version of the product are you using? On what operating system?
SL4A r6

Please provide any additional information below.
The shell interpreter works fine.I have attached the logcat output. Thanks

Original issue reported on code.google.com by [email protected] on 20 Dec 2014 at 2:12

Attachments:

Copied from original issue: damonkohler/android-scripting#712

SL4A has stopped

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Samsung Galaxy S III

What firmware version are you running on the device?
Jelly bean 4.1.2

What steps will reproduce the problem?
1. Activate Tasker task that run the script sendIMupdate.py (found on the net)

What is the expected output? What do you see instead?
Expected: message sent to google talk.
I see: "SL4A stopped working. OK"


What version of the product are you using? On what operating system?
The latest, downloaded on wednesday. For Android.


Please provide any additional information below.
Does not happen every time. Maybe every other time. I have a NFC tag that 
starts the Tasker task, but it also happens with a Tasker shortcut.
Often, while the SL4A is crashing, I try once more right after, and then it 
works, and then it says the message 2 times on google talk. But not always.


Original issue reported on code.google.com by [email protected] on 5 May 2013 at 6:33

Attachments:

Copied from original issue: damonkohler/android-scripting#685

GPS satellites for fix Location Facade

From @GoogleCodeExporter on May 31, 2015 11:31

What should be supported?

'Number of GPS satellites for fix' as a return value from readLocation in 
Location Facade.

The accuracy / pdop value often is not sufficient to estimate the precision of 
the latitude / longitude values.

Number of stellites could improve this estimation.

Thanks a lot,
Bernd

Original issue reported on code.google.com by [email protected] on 6 Jan 2013 at 8:29

Copied from original issue: damonkohler/android-scripting#673

SL4A CANT OPEN THE INTERPRETER AND CRASHES

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Samsung Galaxy Tab GT3110

What firmware version are you running on the device?
processor ARMv7 Processor rev 3 (v7l)
kernel 3.3.31-523998

What steps will reproduce the problem?
1.Install SL4A_R6
2.VIEW INTERPRETERS add new Interpreter
3.ADD PYHTON FOR ANDROID 2.6
4.OPEN PYTHON INSTALL, AND IMPORT EXTRAS, SCRIPTS...
5.PIC ON A SCRIPT  e.g. HELLOWORLD.PY



What is the expected output? What do you see instead?

RUN THE SCRIPT

What version of the product are you using? On what operating system?
Android 4.1.1 

Please provide any additional information below.

SL4A can´t launch the android.script_launcher service




Original issue reported on code.google.com by [email protected] on 18 Aug 2013 at 12:33

Copied from original issue: damonkohler/android-scripting#696

sl4a not working

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?

eeepc

What firmware version are you running on the device?

android x86 4.04 eeepc

What steps will reproduce the problem?
1.installing sl4a
2.installing Python for android
3.running the hello_world.py script

What is the expected output? What do you see instead?
in step of showin hello world, sl4a crashes

What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 29 Oct 2012 at 4:16

Copied from original issue: damonkohler/android-scripting#669

WebSql not support in Webview even i have allready enable websettings for webstorage.

From @GoogleCodeExporter on May 31, 2015 11:31

Dear, sir
i have developed a html5 application using jquery mobile for android device, 
it's work fine in google chrome,opera,maxthon but when i am going to use it on 
mozila it will not and also when i am going to use it on android emulator then 
it will not work and it's not work on my anroid 2.3.2 version device.
so kindly solve it hurry! .....

thankyou

Original issue reported on code.google.com by [email protected] on 15 Apr 2013 at 8:33

Attachments:

Copied from original issue: damonkohler/android-scripting#681

Help developers make deployable apps (.APK's) with SL4A

From @GoogleCodeExporter on May 31, 2015 11:31

It's ambiguous whether / how easy it is for SL4A to be baked into deployable 
apps (.APK's), or whether SL4A is just an IDE for Android.

If SL4A can be baked into fully deployable apps, please make this more clear, 
and promote tutorials for this. I'd love to release Ruby apps in this manner.

Original issue reported on code.google.com by [email protected] on 27 Jan 2013 at 4:13

Copied from original issue: damonkohler/android-scripting#676

Ability to modify pitch of text-to-speech

From @GoogleCodeExporter on May 31, 2015 11:31

I am working on a project at the moment and I thought that being able to modify 
the TTS pitch would be quite helpful. I decided to check out the source and add 
this modification myself and it works (see attached). The only weird thing is 
that, I had to make the parameter for setTtsPitch() a String rather than a 
float or double (I get some "Argument is invalid" error, even after doing 
something like setTtsPitch(float(5)) ).

It's not much but I hope a method like this does get included in future. :)

Cheers

Original issue reported on code.google.com by [email protected] on 3 Feb 2013 at 4:36

Attachments:

Copied from original issue: damonkohler/android-scripting#677

clear: permision denied

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Htc ChaCha
What firmware version are you running on the device?
android 2.3.3
What steps will reproduce the problem?
1.make a python script that write a file or open a text file
2.run script
3.the screen output will be Clear:permision denied

What is the expected output? What do you see instead?
the file being read or written on the sdcard at /sdcard/sl4a/file.txt

What version of the product are you using? On what operating system?

sl4a Android 2.3.3
Please provide any additional information below.

I don't know much about sl4a but i know about python I am making a python todo 
app ... is it done on pc but I can't use it on android.... what kind of 
permision i need to do that root ?

Original issue reported on code.google.com by [email protected] on 9 Aug 2014 at 2:00

Copied from original issue: damonkohler/android-scripting#709

SL4A facades should use namespaces

From @GoogleCodeExporter on May 31, 2015 11:31

Currently all facades bring methods into a global namespace.  It would be nice 
to be able to "package" or put facades in their own namespace. 

For instance:

import android
droid = android.Android()
droid.bluetooth.getLocalAddress()
droid.phone.call("8675309")
# etc...
droid.myfacade.foo()

Original issue reported on code.google.com by [email protected] on 13 Aug 2013 at 3:06

Copied from original issue: damonkohler/android-scripting#693

webView does not open properly

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
galaxy note 8.0

What firmware version are you running on the device?
android 4.1.2

What steps will reproduce the problem?
1.refer to issue # 479. the steps are virtually the same
2. code can be found here:
http://stackoverflow.com/questions/7154669/send-events-from-python-to-javascript
-using-sl4a

What is the expected output? What do you see instead?
supposedly a html page will load. all I get is a blank screen

What version of the product are you using? On what operating system?
sl4a r6. py4a r6

Please provide any additional information below.
tried giving the url value in the webVIewShow a non existent location. still 
ends up with a white screen

Original issue reported on code.google.com by [email protected] on 25 Aug 2013 at 8:22

Copied from original issue: damonkohler/android-scripting#697

standalone_python.sh doesn't recognize the android module

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Samsung Galaxy S3 - Terminal Emulator

What firmware version are you running on the device?
Cyanogenmod 10.2.1-d2vzw

What steps will reproduce the problem?
1. Create .py script, either with a text editor or with SL4A, which uses the 
android module (to do something like makeToast)
2. Place the .py script in the same directory as standalone_python.sh
3. Run the following command: sh standalone_python.sh hello.py

What is the expected output? What do you see instead?
Expected: Android should makeToast (popup notification) saying "hello"
Instead: I receive the following error:
'import site' failed; use -v for traceback
Traceback (most recent call last):
   File "hello.py", line 1, in <module>
       import android
ImportError: No module named android

What version of the product are you using? On what operating system?
"sh standalone_python.sh --version" reports Python 2.6.2

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 30 Apr 2014 at 5:31

Copied from original issue: damonkohler/android-scripting#707

Python scripts not work

From @GoogleCodeExporter on May 31, 2015 11:31

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?
1. Create the following Python script:
import android
droid = android.Android()
droid.makeToast('Hello, Android!')
print 'Hello world!'
2. Run script

What is the expected output?
must print 'Hello world!' & make popup 'Hello Android!'

What do you see instead?
see this error:

dlopen libpython2.6.so
Traceback (most recent call list):
  File "/storage/sdcard0/sl4a/scripts/hello_world.py", line 2, in <module>
    droid = droid.Android()
  File "/storage/sdcard0/sl4a/scripts/android.py", line 34, in __Init__
    self.conn = socket.create_connection(addr)
  File "/home/manuel/AptanaStudio3Workspace/python-for-android/python-build/output/usr/lib/python2.6/socket.py", line 498, in create_connection
    socket.gaierror: [Errno 7] no address associated with hostname.


What version of the product are you using? On what operating system?
sl4a_r6 and PythonForAndroid_r5

Please provide any additional information below.
My friend has the same phone and the same problem.

How can I fix it?

Original issue reported on code.google.com by [email protected] on 27 Apr 2013 at 12:06

Copied from original issue: damonkohler/android-scripting#684

SL4A scripts do not work. They start and exit but nothing happens

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on? Samsung Note 3 

What firmware version are you running on the device?
5.0 Lollipop
What steps will reproduce the problem?
1.Install SL4A
2.Install Python 
3.Running any script including hello_world

What is the expected output? What do you see instead?
Hello World.  I see nothing.  It says script started and then script exited but 
nothing happens.

What version of the product are you using? On what operating system?
I'm using R6 and I'm using it on the phone itself.  Not on an emulator. 

Please provide any additional information below.
I do not have  a rooted phone.  Could that be the issue?  Does SL4A only work 
on rooted phones? 

Original issue reported on code.google.com by [email protected] on 28 Apr 2015 at 12:44

Copied from original issue: damonkohler/android-scripting#714

USB Host Facade

From @GoogleCodeExporter on May 31, 2015 11:31

I'd like to control Arduino via Python in SL4A by USB OTG cable, but can't get 
any /dev/tty* on Android. Is this even possible?

Original issue reported on code.google.com by [email protected] on 22 Apr 2013 at 10:38

Copied from original issue: damonkohler/android-scripting#683

Link to script template for packaging into an APK is broken

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?

Any

What firmware version are you running on the device?

Any

What steps will reproduce the problem?
1. Go to Sharing Scripts page in the Wiki.
2. Try to download the "script project template archive".

What is the expected output? What do you see instead?

I expect to download a file.  I get a 404 error.  The file does not seem to be 
available under Downloads either, unless I missed it there.


What version of the product are you using? On what operating system?

Any


Original issue reported on code.google.com by [email protected] on 24 Oct 2013 at 11:20

Copied from original issue: damonkohler/android-scripting#699

can't type parentheses in terminal

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Samsung Pocket Neo

What firmware version are you running on the device?
S5310XXAME1

What steps will reproduce the problem?
1. open Python or lua interpreter on mobile phone
2. try to type closing parenthesis ')'
3.

What is the expected output? What do you see instead?
expected: closing parenthesis is typed in the terminal
result: the character sequence ^@ appears.
A similar problem happens when typing comma: i see a question mark instead.
The problem persists with both ascii and utf-8 encoding.

What version of the product are you using? On what operating system?
Android 4.1.2

Please provide any additional information below.
using SL4A r6x03

Original issue reported on code.google.com by [email protected] on 29 Mar 2014 at 4:21

Copied from original issue: damonkohler/android-scripting#706

contactsGet doesn't get any contact

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
LG NEXUS 4

What firmware version are you running on the device?

What steps will reproduce the problem?
/data/data/com.android.perl/files/perl/perl -e 'use Android; use Data::Dumper; 
my $droid = Android->new(); print Dumper  $droid->contactsGet();' 

What is the expected output? What do you see instead?
$VAR1 = {
          'error' => undef,
          'id' => 1,
          'result' => []
        };


What version of the product are you using? On what operating system?


Please provide any additional information below.

I'm using local phone storage for contacts.

/data/data/com.android.providers.contacts/databases/contacts2.db

Original issue reported on code.google.com by [email protected] on 6 Jul 2013 at 5:27

Copied from original issue: damonkohler/android-scripting#690

All BatteryManagerFacade api cannot get result on my devices

From @GoogleCodeExporter on May 31, 2015 11:31

Dear developer:

I cannot get result from readBatteryData() or other BatteryManagerFacade api

My scripts:

import android
droid = android.Android()
print droid.readBatteryData()

get Result(id=1, result=None, error=None)

This issue on 
batteryCheckPresent
batteryGetHealth
batteryGetLevel
batteryGetPlugType
batteryGetStatus
batteryGetTechnology
batteryGetTemperature
batteryGetVoltage
batteryStartMonitoring
batteryStopMonitoring
readBatteryData

Many thanks!

By Panda



Original issue reported on code.google.com by [email protected] on 8 Jan 2014 at 7:33

Attachments:

Copied from original issue: damonkohler/android-scripting#702

adb shell python "dlopen libpython2.6.so"

From @GoogleCodeExporter on May 31, 2015 11:31

./adb install PythonForAndroid_r4.apk
UI execute apk & install python
download:http://code.google.com/p/python-for-android/source/browse/python-build/
standalone_python.sh
step 1:"#! /bin/sh" replace "#! /system/bin/sh"
step 2::"storage: replace "sdcard"
step 3:save as python
(cmd:./adb root)

./adb push python /system/bin

./adb shell

root@android:/ #python

##########################################

dlopen libpython2.6.so

Python 2.6.2 (r262:71600, Mar 20 2011, 16:54:21)

[GCC 4.4.3] on linux-armv7l

Type "help", "copyright", "credits" or "license" for more information.

>>>

##########################################

python does work, but I also get an error:

dlopen libpython2.6.so

what happen??

Original issue reported on code.google.com by [email protected] on 4 Jan 2013 at 7:01

Copied from original issue: damonkohler/android-scripting#671

can't run in remote mode (from pc by wifi) scripts on my andorid

From @GoogleCodeExporter on May 31, 2015 11:31

i have samsung galaxy s2.
but get message that it' not writeable'
>>> droid = android.Android(("192.168.1.11",39768)) //public server
>>> droid.makeToast("dsadas")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".\android.py", line 58, in rpc_call
    return self._rpc(name, *args)
  File ".\android.py", line 45, in _rpc
    self.client.write(request+'\n')
io.UnsupportedOperation: not writable

thx you

Original issue reported on code.google.com by [email protected] on 5 Apr 2013 at 11:08

Copied from original issue: damonkohler/android-scripting#679

Leak found in FacadeManagerFactory

From @GoogleCodeExporter on May 31, 2015 11:31

What steps will reproduce the problem?

AndroidProxy constructor creates a FacadeManagerFactory and an instance of 
JsonRpcServer(passing in the factory).

FacadeManagerFactory has a .create() method, which creates a new FacadeManger 
adding the newly created object to a list (see 
mFacadeManagers.add(facadeManager)), and returns the newly created FacadeManger 
object.

There is no code to remove from the list.

The JsonRpcServer makes a call to FacadeManagerFactory .create method each time 
it handles a connection.

The mFacadeManagers list grows each time an connection is handled, and the 
objects in the list cannot be collected as a references to them is kept.

To reproduce you can makes calls in a loop to a facade and check in DDMS (or 
MAT) the "Retained Heap" objects growing as FacadeManager objects number grows 
without going down (see retained heap of FacadeManager).

Original issue reported on code.google.com by [email protected] on 4 Jan 2013 at 1:24

Copied from original issue: damonkohler/android-scripting#672

Samsung multi window support

From @GoogleCodeExporter on May 31, 2015 11:31

What should be supported?
Multi window on newer Samsung devices.  It would make it easier to say code 
while also viewing the API or even have a Python console opened along with the 
code editor to try stuff before implementing it in code.  I'm sure there are 
even more uses too.

Original issue reported on code.google.com by [email protected] on 15 Aug 2013 at 9:50

Copied from original issue: damonkohler/android-scripting#695

Problem building sl4a/android apk

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Building on windows, testing on Samsung Galaxy s4

What firmware version are you running on the device?

What steps will reproduce the problem?
Follow the recommended guide to building an sl4a apk:
http://jokar-johnk.blogspot.ca/2011/02/how-to-make-android-app-with-sl4a.html

What is the expected output? What do you see instead?
Eventually, apk builds, but nothing happens

What version of the product are you using? On what operating system?
Latest version checked out from github

Please provide any additional information below.

Looks like the relevant lines are:
W/dalvikvm(25765): Unable to resolve superclass of 
Lcom/dummy/fooforandroid/ScriptApplication; (837)
W/dalvikvm(25765): Link of class 'Lcom/dummy/fooforandroid/ScriptApplication;' 
failed
D/AndroidRuntime(25765): Shutting down VM
W/dalvikvm(25765): threadid=1: thread exiting with uncaught exception 
(group=0x42082898)
E/AndroidRuntime(25765): FATAL EXCEPTION: main
E/AndroidRuntime(25765): java.lang.RuntimeException: Unable to instantiate 
application com.dummy.fooforandroid.ScriptApplication: 
java.lang.ClassNotFoundException: Didn't find class 
"com.dummy.fooforandroid.ScriptApplication" on path: 
/data/app/com.dummy.fooforandroid-2.apk

This stack overflow may be relevant, suggesting that some projects might need 
to be converted to android library projects (I'm not sure how to do that 
though) :
http://stackoverflow.com/questions/10866431/android-activity-classnotfoundexcept
ion-tried-everything

Original issue reported on code.google.com by [email protected] on 16 Feb 2014 at 9:16

Attachments:

Copied from original issue: damonkohler/android-scripting#705

toggleAirplaneMode() causes NullPointerException

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Nexus 5
What firmware version are you running on the device?
Android 4.4
What steps will reproduce the problem?
1. Run the following script (with python interpreter):

#!/usr/bin/python

import android
droid = android.Android()

# go to airplane mode

droid.toggleAirplaneMode()

droid.makeToast('exiting')

What is the expected output? What do you see instead?
The phone should toggle the state of airplane mode. Instead the airplane mode 
command returns: Result(id=2, result=None, 
error=u'java.lang.NullPointerException')


What version of the product are you using? On what operating system?
SL4Ar6
python interpreter v 16

Logcat has the following line:
W/ActivityManager(  757): Permission Denial: not allowed to send broadcast 
android.intent.action.AIRPLANE_MODE from pid=28873, uid=10096



Original issue reported on code.google.com by [email protected] on 14 Nov 2013 at 6:52

Attachments:

Copied from original issue: damonkohler/android-scripting#700

sl4a is not working with Android 5.1

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Lollipop device
What firmware version are you running on the device?
Andriod 5.1
What steps will reproduce the problem?
1.sl4a and pythonfor andriod apk's are installed.
2.If i try to run python script blank screen is coming up and keyboard is 
appearing.
3.In the notification window it shows script is running but nothing is working

What is the expected output? What do you see instead?
The python script should execute.

What version of the product are you using? On what operating system?
Andriod 5.1


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 6 Apr 2015 at 9:04

Copied from original issue: damonkohler/android-scripting#713

Distribute an apk for x86 device

From @GoogleCodeExporter on May 31, 2015 11:31

Dear developpers

First, excuse me for my poor English... I'm French speaking.

I'm not an expert with android developpment (as lot's of people are...). I'm 
interested by small devices and embedded devices (actually Raspberry Pi) that 
have no screen or keyboard.

Your SL4A open the door to a lot of possibilities to interact with this kind of 
device. 

I use http://www.genymotion.com/ virual android machine to developp, but    
unfortunately SL4A doen't run on x86 based system, and I'm not enought 
experimented to compile it for this target.

Please : can you add a release for x86 devices ?

Best regards and all my wishes for the new year !

Original issue reported on code.google.com by [email protected] on 29 Dec 2013 at 8:48

Copied from original issue: damonkohler/android-scripting#701

App runs with ADB but not as expected from apk

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on? Note-2

What firmware version are you running on the device? 4.1.2

What steps will reproduce the problem?
1. Create simple app which opens a webpage as an intent using droid.view() 
2. Run the script via adb (opens the webpage)
3. Run the script as an app via apk. App closes when it starts

What is the expected output? What do you see instead?
Expected output is webpage. Nothing is seen and the app closes

What version of the product are you using? On what operating system?
I am using linux and sl4a r6

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 3 Oct 2013 at 4:53

Copied from original issue: damonkohler/android-scripting#698

FullScreenUI events

From @GoogleCodeExporter on May 31, 2015 11:31

While it is possible to generate a SeekBar by layout xml definition, no related 
events are triggered. 
The SeekBar can be supported with ease by letting the FullScreenTask to 
implement the OnSeekBarChangeListener interface as done with OnClickListener 
and OnItemClickListener.

Probably other listeners I am not aware of can, be supported so perhaps the 
triggering can be moved out the FullScreenTask class.

Original issue reported on code.google.com by [email protected] on 19 Jul 2013 at 8:26

Copied from original issue: damonkohler/android-scripting#692

smsSend replaces "¡" (inverted exclamation mark) with "@"

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
HTC One S

What firmware version are you running on the device?
Android 4.1.1

What steps will reproduce the problem?
droid.smsSend(myNumber, "¡")
droid.smsSend(myNumber, "Any string containing ¡")


What is the expected output? What do you see instead?
I expect to get SMS containing "¡", instead I get new SMS with string 
containing "@" where "¡" is supposed to be.

What version of the product are you using? On what operating system?
Using sl4a r6 with Python3 for Android 

Tested only with Python 3.2.2

Original issue reported on code.google.com by [email protected] on 21 Jun 2013 at 11:03

Copied from original issue: damonkohler/android-scripting#689

Barcode scan on 4.2.2

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?

Galaxy Nexus

What firmware version are you running on the device?

4.4.2

What steps will reproduce the problem?
1. open sl4a
2. click menu button
3. click add
4. click scan barcode
5. the app crash 'sl4a stopped'

What is the expected output? What do you see instead?

should scan Barcode and import script.
see nothing actually

What version of the product are you using? On what operating system?

sl4a_r6.apk, on Android.


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 15 Apr 2013 at 10:58

Copied from original issue: damonkohler/android-scripting#682

Support for Insecure RFCOMM

From @GoogleCodeExporter on May 31, 2015 11:31

Will there be any support to create insecure rfcomm?

What device(s) are you experiencing the problem on?

What firmware version are you running on the device?

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 22 Oct 2012 at 5:57

Copied from original issue: damonkohler/android-scripting#668

SL4A not working on Android 5.0 Lollipop

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Nexus 4
What firmware version are you running on the device?
Stock android 5.0 build number LRX21T
What steps will reproduce the problem?
1. Open built-in script notify_weather.py
2. Choose Save and Run from menu
3.

What is the expected output? What do you see instead?
Expected a notification with the weather. Got nothing.

What version of the product are you using? On what operating system?
SL4A version 6. Android 5.0 Lollipop.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 27 Nov 2014 at 1:04

Copied from original issue: damonkohler/android-scripting#711

broken link on android-scripting/wiki/SharingScripts‏

From @GoogleCodeExporter on May 31, 2015 11:31


Link on 
https://code.google.com/p/android-scripting/wiki/SharingScripts#Scripts_as_APKs

to

"template project archive."

[http://android-scripting.googlecode.com/hg/android/script_for_android_template.
zip]

is 404.

Original issue reported on code.google.com by [email protected] on 20 May 2015 at 11:38

Copied from original issue: damonkohler/android-scripting#715

xmlrpmlib

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Pantech Marauder from Verizon

What firmware version are you running on the device?
4.0.3

What steps will reproduce the problem?
Run the following code (with or without a running http server):
import xmlrpclib
xmlrpmlib.ServerProxy("http://192.168.1.179:8000").test()

What is the expected output? What do you see instead?
Expected output depends on xmlrpc server. Instead I get this stack trace:

Traceback (most recent call last):
  File "main.py", line 11, in <module>
    print server.raw_input("Name: ")
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/xmlrpclib.py", line 1224, in __call__
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/xmlrpclib.py", line 1575, in __request
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/xmlrpclib.py", line 1264, in request
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/xmlrpclib.py", line 1292, in single_request
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/xmlrpclib.py", line 1439, in send_content
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/httplib.py", line 951, in endheaders
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/httplib.py", line 811, in _send_output
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/httplib.py", line 773, in send
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/httplib.py", line 754, in connect
  File "/Users/hyan/Documents/qpyapp/python-for-android/build/python-install/lib/python2.7/socket.py", line 571, in create_connection
socket.error: [Errno 113] No route to host

What version of the product are you using? On what operating system?
I'm using the latest version (as of 5/24/13) from the Google Play Store.

Please provide any additional information below.
I can connect to the server with httplib without a problem, which is weird 
because the stack trace shows httplib throwing the exception.

Original issue reported on code.google.com by [email protected] on 25 May 2013 at 8:12

Copied from original issue: damonkohler/android-scripting#687

PhoneStateChageListener 's OnCellLocationChange goes quite when phone goes to sleep.

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Any

What firmware version are you running on the device?
Any

What steps will reproduce the problem?
1.when phone goes to sleep state oncellLocationChange does not call up.

What is the expected output? What do you see instead?
a celllocation object with a proper cellID.
Instead a received cellLocation ha cellId as -1. 

Please help me out to show a path to sout the issue.

Original issue reported on code.google.com by [email protected] on 3 Jun 2014 at 11:40

Copied from original issue: damonkohler/android-scripting#708

Support for Samsung Chord API

From @GoogleCodeExporter on May 31, 2015 11:31

Can you add support for the Chord API?  I can help with it if you want.

http://developer.samsung.com/chord


Original issue reported on code.google.com by [email protected] on 3 Jun 2013 at 3:38

Copied from original issue: damonkohler/android-scripting#688

Add ability to dynamically register facades

From @GoogleCodeExporter on May 31, 2015 11:31

It would be nice to be able to add/register a facade to the sFacadeClassList 
WITHOUT having to rebuild/compile SL4A.  

Ideally all of the facades to be loaded could be defined in an xml/ini file and 
loaded on start up.

Original issue reported on code.google.com by [email protected] on 13 Aug 2013 at 3:12

Copied from original issue: damonkohler/android-scripting#694

Can't locate unicore/PVA.pl in @INC

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
LG NEXUS 4

What firmware version are you running on the device?

What steps will reproduce the problem?
print Dumper $droid->getLaunchableApplications();


What is the expected output? What do you see instead?
Can't locate unicore/PVA.pl in @INC (@INC contains: 
/data/data/com.googlecode.perlforandroid/files/perl/site_perl/5.10.0/arm-eabi-li
nux /sdcard/com.googlecode.perlforandroid/extras/perl/site_perl/5.10.0 
/data/data/com.googlecode.perlforandroid/files/perl/5.10.0/arm-eabi-linux 
/data/data/com.googlecode.perlforandroid/files/perl/5.10.0 
/sdcard/com.googlecode.perlforandroid/extras/perl/site_perl .) at 
/data/data/com.googlecode.perlforandroid/files/perl/5.10.0/utf8_heavy.pl line 
97, <GEN0> line 3.


What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 6 Jul 2013 at 6:02

Copied from original issue: damonkohler/android-scripting#691

Taken photo hasn't been saved.

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Sony Ericsson Arc S

What firmware version are you running on the device?
Android 4.4.4

What steps will reproduce the problem?
My code:
# -*- coding: utf-8 -*-
import android

droid = android.Android()
droid.cameraInteractiveCapturePicture('/storage/sdcard0/Download/foo.jpg')
exit()

What is the expected output? What do you see instead?
Expected:
User take a photo and after click the tick, the photo is saved and can be seen 
at the specified path(/storage/sdcard0/Download/) with the specified 
name(foo.jpg)

Instead of it:
After put the tick, the camera quit and the script is running, doesn't reach 
exit()

What version of the product are you using? On what operating system?
The newest one: r6x03
OS: Windows 8.1 Enterprise

Please provide any additional information below.
I tried with other pathes(windows Download folder and android sl4's script 
folder) and emulator(Android virtual device).

Original issue reported on code.google.com by [email protected] on 3 Nov 2014 at 11:02

Attachments:

Copied from original issue: damonkohler/android-scripting#710

App runs with ADB but not as expected from apk

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on? Note-2

What firmware version are you running on the device? 4.1.2

What steps will reproduce the problem?
1. Create simple app which opens a webpage as an intent using droid.view() 
2. Run the script via adb (opens the webpage)
3. Run the script as an app via apk. App closes when it starts

What is the expected output? What do you see instead?
Expected output is webpage. Nothing is seen and the app closes

What version of the product are you using? On what operating system?
I am using linux and sl4a r6

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 3 Oct 2013 at 4:53

Copied from original issue: damonkohler/android-scripting#698

Arrow keys don't work on python terminal

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Kyocera Rise
What firmware version are you running on the device?
Android 4.0.4 software version 1.000VM

What steps will reproduce the problem?
1.Installed SL4A r6
2.Added the python 2.6.2 interpreter
3.Ran the python interperter

What is the expected output? What do you see instead?
The expected output is to shift the cursor left or right, instead I get "^[[D" 
for left arrow and "^[[C" when I press the right arrow key (without the 
quotes). Pressing up and down keys give the similar result.

What version of the product are you using? On what operating system?


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 11 Dec 2012 at 8:09

Copied from original issue: damonkohler/android-scripting#670

Ability to obtain the android.content.Context in Java interpreters

From @GoogleCodeExporter on May 31, 2015 11:31

What should be supported?

As explained [on this wiki 
page](https://code.google.com/p/android-scripting/wiki/Unofficial#Notes_for_Java
_interpreters), the lack of context means that many Android API calls are not 
possible in Java interpreters such as BeanShell, Rhino, and JRuby. Quote from 
the wiki page:

> **Notes for Java interpreters**
>
> Beanshell and Rhino can both directly access the android api. However, many 
Android api calls required a context, which, due to the way they are run, these 
interpreters don't have. A solution is being sought... suggestions appreciated.

Although the developers are already aware because it's on the wiki, I think 
that it's appropriate that the issue is documented here on the tracker. If the 
issue is actually already resolved, then consider this issue as a request for 
documentation and to update the wiki.

I've also asked a question about it here:
http://stackoverflow.com/questions/21038611/how-do-i-obtain-the-android-context-
in-beanshell-for-sl4a

Original issue reported on code.google.com by james.r.haigh on 15 Jan 2014 at 6:16

Copied from original issue: damonkohler/android-scripting#704

NullpointerException with use of PythonForAndroid?

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
Nexus 4
What firmware version are you running on the device?
4.2.1
What steps will reproduce the problem?
1. Running the following task in Tasker:

Task: Take Silent Photo (14)
    A1: Take Photo X  [ Camera:Front Filename:suspect Naming Sequence:Chronological Insert In Gallery:Off Discreet:On Resolution:1280x960 Scene Mode:Auto White Balance:Auto Flash Mode:Auto ] 
    A2: Notify [ Title:Photo Taken Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ] 
    A3: Send SMS X  [ Number:%REQUESTER Message:%FOTO Store In Messaging App:Off ] 
    A4: Variable Set [ Name:%EMAIL_ATTACH To:%FOTO Do Maths:Off Append:Off ] 
    A5: Variable Set [ Name:%EMAIL_USER To:markstrom.martin Do Maths:Off Append:Off ] 
    A6: Variable Set [ Name:%EMAIL_PSWD To:xxxxxxxxxx Do Maths:Off Append:Off ] 
    A7: Variable Set [ Name:%EMAIL_TO To:[email protected] Do Maths:Off Append:Off ] 
    A8: Run SL4A Script [ Name:sendemailA.py Terminal:Off Pass Variables:%EMAIL_NAME,%EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_SUBJECT,%EMAIL_BODY,%EMAIL_ATTACH ]

What is the expected output? What do you see instead?
An email is expected to be sent.
Instead I get a popup "Unfortunately, SL4A has stopped.", this popup
reappears a few seconds later again as seen in the logcat.

What version of the product are you using? On what operating system?
sl4a_r6.apk
PythonForAndroid_r5.apk
Tasker 1.3.3u2
downloaded 2013-02-06:
http://tasker.wikidot.com/local--files/sl4a/sendemailA.py
OS: android 4.2.1

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 6 Feb 2013 at 6:10

Attachments:

Copied from original issue: damonkohler/android-scripting#678

My app is doing excessive garbage collection after running for the first time.

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
   All android smartphones - current test device Samsung GT-P3110

What firmware version are you running on the device?
    Latest firmware for Samsung GT-P3110

What steps will reproduce the problem?
    Install the app and then run it 2 times

What is the expected output? What do you see instead?
    The app runs fine but starts very slowly - always about 8 seconds

What version of the product are you using? On what operating system?
    Latest script-for-android-template on android 4.1.1

Please provide any additional information below.
    I have lots of GC_CONCURRENT entries in my log file followed by these two lines:
1) D/sl4a.ScriptService:185( 9709): No need to update 
/data/data/com.langtech.wikitestswebsite/files/content.zip
2) D/sl4a.ScriptService:163( 9709): Checking if 
/data/data/com.langtech.wikitestswebsite/files/script.py exists

    The first time I run my app these GC_CONCURRENT entries do not appear and are clearly delaying my app starting. It would appear that the integrity of the files is being checked at start up.

Extract from logfile:
......
......
D/dalvikvm( 9709): GC_CONCURRENT freed 406K, 13% free 7582K/8711K, paused 
12ms+12ms, total 45ms

D/dalvikvm( 9709): GC_CONCURRENT freed 406K, 13% free 7583K/8711K, paused 
12ms+13ms, total 43ms

D/dalvikvm( 9709): GC_CONCURRENT freed 407K, 13% free 7582K/8711K, paused 
12ms+12ms, total 43ms

D/dalvikvm( 9709): GC_CONCURRENT freed 406K, 13% free 7582K/8711K, paused 
12ms+12ms, total 50ms

D/sl4a.ScriptService:185( 9709): No need to update 
/data/data/com.langtech.wikitestswebsite/files/content.zip

D/sl4a.ScriptService:163( 9709): Checking if 
/data/data/com.langtech.wikitestswebsite/files/script.py exists

Original issue reported on code.google.com by [email protected] on 9 May 2013 at 8:56

Attachments:

Copied from original issue: damonkohler/android-scripting#686

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.