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.44k stars 800 forks source link

Can't import android.widget.TextView class #234

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:27

What steps will reproduce the problem?
1. insert next lines in the header of the source code:

include Java
requuire 'android'

java_import Java::android.widget.TextView

2. execute script

What is the expected output? What do you see instead?
I expect to be able to import that class and use it. In fact I'm trying to 
execute the ruby version of Hello World example.

What version of the product are you using? On what operating system?
I'm using ase_r25.apk with Android 2.1 on a Samsung Spica.

Please provide any additional information below.
I've attached an extract of my logcat file and what I get on the command line 
when I add -d (debug) option to jruby. If you need the logcat file file, tell 
me.

I understand there's an issue with the JNI/JNA part of the android framework 
but that's all... Maybe what I'm asking for is competely silly, I don't know...

Anyway, you're doing a great job. I really like it. Good luck !!!

Original issue reported on code.google.com by daishika...@gmail.com on 9 Jul 2010 at 2:01

Attachments:

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