vieuxcarre44 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Force Close homescreen script shortcut #432

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
HTC Desire

What firmware version are you running on the device?
Android 2.1-update1 with HTC Sense
2.6.29 kernel
1.21.405.2 software number

What steps will reproduce the problem?
1. Install SL4A and add python intepreter
2. Place a shortcut on your home screen to any script
3. Tap the shortcut

What is the expected output? 
The script should have executed.

What do you see instead?
Force Close dialog: The application SL4A (process 
com.googlecode.android_scripting) has stopped unexpectedly

What version of the product are you using? On what operating system?
SL4A r2 on Android 2.1

Please provide any additional information below.

Original issue reported on code.google.com by alex.mih...@gmail.com on 14 Sep 2010 at 5:44

Attachments:

GoogleCodeExporter commented 9 years ago
Need to convert filename to string? 

W/Bundle  ( 2516): Key com.googlecode.android_scripting.extra.SCRIPT_PATH 
expected String but value was a java.io.File.  The default value <null> was 
returned.

Original comment by spence...@gmail.com on 14 Sep 2010 at 11:15

GoogleCodeExporter commented 9 years ago
I believe it's related to this, from the changelog: " To deal with the new 
folder support, full script paths are passed around as File objects instead of 
just the script name as a String." It seems not everything was adapted to use 
File objects.

Original comment by alex.mih...@gmail.com on 15 Sep 2010 at 7:52

GoogleCodeExporter commented 9 years ago
This also affects the Live Folder (which crashes my launcher (both stock Home 
and Launcher Pro)).

Original comment by magnificent.tears on 15 Sep 2010 at 7:10

GoogleCodeExporter commented 9 years ago
I got FC running any bash script from desktop widget on Evo4g with Froyo 
inside. Thanks.

Original comment by skosenko on 15 Sep 2010 at 7:16

GoogleCodeExporter commented 9 years ago
Also reproduces with SL4A v2, Android 1.6 and LG GT540 Optimus.

Original comment by part1zan...@gmail.com on 17 Sep 2010 at 5:12

GoogleCodeExporter commented 9 years ago
I've got the same problem with a HTC Hero (Cyanogenmod nightly 819) and HTC 
legend (2.1 with sense) both running sl4a r2

Original comment by thejacka...@gmail.com on 17 Sep 2010 at 9:07

GoogleCodeExporter commented 9 years ago
I checked the code, and found that the class 
'com.googlecode.android_scripting.activity.ScriptManager' is setting the script 
path extra with the file's absolute path, while 
com.googlecode.android_scripting.IntentBuilders is setting it to the File 
object.

As it seems, all other methods expect a String contained in that extra.

So, here is a patch that modifies IntentBuilders to put the absolute script 
path instead of the file object.

Original comment by oli.sa...@gmail.com on 20 Sep 2010 at 2:54

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 433 has been merged into this issue.

Original comment by damonkoh...@gmail.com on 25 Sep 2010 at 9:35

GoogleCodeExporter commented 9 years ago
Issue 447 has been merged into this issue.

Original comment by damonkoh...@gmail.com on 27 Sep 2010 at 10:56

GoogleCodeExporter commented 9 years ago
Oh, just spent 30minutes getting the log and now I find this issue here ;-)

my stats:
HTC desire, froyo 2.2, SL4A  r2

Original comment by oer...@gmail.com on 27 Sep 2010 at 1:08

GoogleCodeExporter commented 9 years ago
Same problem.

Motorola Droid 2, Froyo 2.2, SL4A r2.

Going to try oli's patch.

Original comment by seabre...@gmail.com on 27 Sep 2010 at 8:49

GoogleCodeExporter commented 9 years ago
Hey everybody,

I built sl4a_r2 with the patch given by oli.samyn. 

It works great so far! Exciting stuff!

You can download the apk I built here:
http://dl.dropbox.com/u/1720529/ScriptingLayerForAndroid_r2_withissue432patch.ap
k

Original comment by seabre...@gmail.com on 29 Sep 2010 at 4:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I uninstalled my old version of SL4A, installed seabre986's, deleted my old 
shortcut and recreated it. Result: Works perfectly. Thanks seabre986!

Original comment by tjho...@gmail.com on 30 Sep 2010 at 6:51

GoogleCodeExporter commented 9 years ago
ScriptingLayerForAndroid_r2_withissue432patch.apk works fine, please merge into 
SL4A.

Original comment by oer...@gmail.com on 30 Sep 2010 at 6:55

GoogleCodeExporter commented 9 years ago

Original comment by damonkoh...@gmail.com on 11 Oct 2010 at 1:27