damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

sl4a python apk wont exit #52

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

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 MichaelD...@gmail.com on 6 Oct 2012 at 10:08

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