Michel van der List on 23 Nov 2011 14:47:42 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Python on Android


Yes, it just takes another step that google hides in eclipse. Less convenient.

On 11/23/2011 05:35 PM, Fred Stluka wrote:
Michel,

Good article.  Thanks!

Since the *.class files (bytecode) are translated to Dalvik *.dex
files, wouldn't any *.class files work, whether they were generated
by Java or any other language that generates JVM bytecodes?

--Fred
---------------------------------------------------------------------
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
---------------------------------------------------------------------


On 11/22/11 3:03 PM, Michel van der List wrote:
The wikipedia article is pretty good.

Basically, for android they translate the jvm bytecode to dalvik code, which gives you all the normal tools, compilers, etc. but you can than simply target the android phone.

http://en.wikipedia.org/wiki/Dalvik_(software) <http://en.wikipedia.org/wiki/Dalvik_%28software%29>

Michel

On 11/22/2011 02:58 PM, Fred Stluka wrote:
Michel,

Close enough, or significant differences?

--Fred
---------------------------------------------------------------------
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
---------------------------------------------------------------------


On 11/22/11 2:40 PM, Michel van der List wrote:
Keep in mind that android does not run the java jvm, it runs dalvik.

Michel

On 11/22/2011 01:40 PM, Fred Stluka wrote:
Eric,

Interesting.  So, yeah, it did require a mapping layer to give Python
access to the Java APIs. Says that "Scripting Layer for Android (SL4A)"
supports not only Python, but also Perl, JRuby, Lua, BeanShell,
JavaScript and Tcl.

I'm surprised about JRuby.  That's an implementation of Ruby that
runs on the Java JVM with the JRuby compiler generating standard
JVM byte codes, right?  So it should be able to call the Java APIs
directly, with no need for SL4A.  Maybe I'm missing something...

Good article.  Thanks!

--Fred
---------------------------------------------------------------------
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
---------------------------------------------------------------------


On 11/22/11 1:05 PM, Eric H. Johnson wrote:
Related to "Developing Portable Mobile Web Applications" another thing mentioned last night at PLUG west was writing Python apps for Android. Here is a detailed article on how to write Python applications for Android:
http://www.linuxjournal.com/article/10940

Regards,
Eric




___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug


___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug


___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug


___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug