pombreda / android-scripting

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

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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