sinkuri256 / android-scripting

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

RuntimeException where trying to use template project archive. #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow steps in section "SharingScripts as apks" to build your apk. Install 
and run the apk

What is the expected output? What do you see instead?
Expected to see the toast; Force close instead. See NullPointer.log

What version of the product are you using? On what operating system?
sl4a_r0.apk, python_for_android_r0.apk

Please provide any additional information below.
I am new to android scripting and am trying out this for the first time. For 
some reason, when I run it, the call to ((BaseApplication) getApplication()) in 
ScriptService constructor returns null:

I made modifications to ScriptService.java to get rid of this error (modified 
file attached). Now it does read from the raw resource and writes into file. 
However, the launchScript throws "No such script" exception now even though the 
scripts does exist in the path specified. Logcat attached NoSuchScript.log.

Original issue reported on code.google.com by boby.i...@gmail.com on 6 Aug 2010 at 4:11

Attachments:

GoogleCodeExporter commented 9 years ago
Changing the script path to point to /sdcard/sl4a/scripts fixes the issue for  
me. However, InterpreterUtils.getInterpreterRoot(this).getAbsolutePath() still 
points to my application's data path.

Original comment by boby.i...@gmail.com on 9 Aug 2010 at 2:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision d33ef624b6.

Original comment by Alexey.R...@gmail.com on 10 Aug 2010 at 3:45