Status of Jython, JRuby, Scala, etc Android development?

by remi » Thu, 23 Oct 2008 11:32:55 GMT


Sponsored Links
 I'm not to Android development - got my G1 today, like many other
developers.  I'm a professional Ruby developer (with previous Java
experience) and I'm working ... what is the status of writing Android
applications in other Java languages that compile to typical Java
bytecode (like JRuby, Jython, etc)?

( there's nothing wrong with plain vanilla Java, but I would be *very*
interested in developing open-source Ruby libraries to lower the bar
to entry for Android, for Ruby developers ... I'm sure the same goes
for Python developers, etc )

Thanks!

--~--~---------~--~----~------------~-------~--~----~



Status of Jython, JRuby, Scala, etc Android development?

by remi » Mon, 27 Oct 2008 16:58:16 GMT


 Interest in this seems pretty high.  I wonder ... does the official
Android team have any interest in getting dynamic languages running on
Dalvik?  The ability to code in Python, Ruby, Groovy, Scala, etc seems
like it could do *amazing* things for Android and multiple the number
of Android developers.

Also, some of these languages (Ruby, in particular) are *great* for
writing DSLs - a DSL for making Android apps could be spectacular.

Anyway, I'm replying with some resource that relate to this topic
incase someone else is interested, etc.

This Sun blog post mentions why dynamic languages currently won't run
on Dalvik,  http://blogs.sun.com/jrose/entry/with_android_and_dalvik_at ,
saying "Something like the dx tool can be forced into the phone, so
that Java code could in principle continue to generate bytecodes, yet
have them be translated into a VM-runnable form. But, at present, Java
code cannot be generated on the fly. This means Dalvik cannot run
dynamic languages (JRuby, Jython, Groovy). Yet. (Perhaps the dex
format needs a detuned variant which can be easily generated from
bytecodes.)"

This guy posted what happened when he tried getting JRuby running on
Android:  http://amazing-development.com/archives/2007/12/14/jruby-on-android/ 

Here are other Google Group posts on other google groups that are also
curious about the status of running dynamic languages on Android /
Dalvik - watch them for updates or, if someone posts updates here, you
might want to let these other threads know as well:

"Java/Ruby Support" 


Sponsored Links


Status of Jython, JRuby, Scala, etc Android development?

by remi » Mon, 10 Nov 2008 22:26:19 GMT


 ote: I posted a new thread, asking about this, on android-developers
@
http://groups.google.com/group/android-developers/browse_thread/thread/ba48bb0d90c9f8e1

I don't think I'm cross-posting! I'm asking a fresh new question -
I'd like to find out if there's an official status of running dynamic
languages on Dalvik, somewhere out there. Even if no one is working
on getting dynamic JVM languages running on Dalvik, I'd like to know
that, Obviously, I hope someone out there is working on this, or
considering working on it :P

On Oct 27, 9:57am, remi <[EMAIL PROTECTED]> wrote:
--~--~---------~--~----~------------~-------~--~----~



Status of Jython, JRuby, Scala, etc Android development?

by remi » Mon, 10 Nov 2008 22:35:50 GMT


 ust stumbled upon this ... looks like someone implemented Jython on
Dalvik???? http://code.google.com/p/jythonroid/ no idea how stable it
may or may not be ... could be hot, though!

On Nov 10, 3:26pm, remi <[EMAIL PROTECTED]> wrote:
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. GPS Programming...

Hi,

I'm trying to start a GPS program and I'm just trying out the first
step to display coordinates as they change.

I followed http://www.devx.com/wireless/Article/39239 and used the
LocationManager and LocationListener classes.

Code:
public class GPSTest extends Activity {
    /** Called when the activity is first created. */

        private TextView text;
        private LocationManager manager;
        private LocationListener listener;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        text = (TextView) findViewById(R.id.Text);

        manager = (LocationManager) getSystemService
(Context.LOCATION_SERVICE);
        listener = new MyLocationListener();
        manager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
0, 0, listener);
    }

    private class MyLocationListener implements LocationListener{

                public void onLocationChanged(Location location) {
                        // TODO Auto-generated method stub
                        if (location != null){
                                text.setText(text.getText() + "\n" + 
location.getLatitude() + ", "
+ location.getLongitude() + " - " + location.getAccuracy());
                        }
                }

                public void onProviderDisabled(String provider) {
                        // TODO Auto-generated method stub

                }

                public void onProviderEnabled(String provider) {
                        // TODO Auto-generated method stub

                }

                public void onStatusChanged(String provider, int status, Bundle
extras) {
                        // TODO Auto-generated method stub

                }

    }
}

However, once I run the code on the phone, the GPS icon is seen
flashing but nothing happens. The method onLocationChanged is never
reached (according to breakpoints). What am I doing wrong?

--~--~---------~--~----~------------~-------~--~----~

2. How to detect the availability of networks programatically in andriod emulator?

I am trying to implement the application which listens the
availability of networks in emulator or real T mobile device later on.
For example, the application shows all availabe network such as wifi,
LAN and public networks
According to the connection/disconnections, it only have to show
current connected networks available at all time.

I have found wifiManager in SDK but i can't find for 3G.

plese, give me some suggestions/ sample prg to start up writing above
program as I am quite new to this platform.

your reply would be much appreciated.

Thanks all in advance.


Andy

--~--~---------~--~----~------------~-------~--~----~

3. Installing the SDK alongside Amazon EC2 Tools on Mac

4. Where is a mobile phone :-)

5. how to view page source and what is @ hide?

6. process com.microjobsinc.mjandroid has stoped unexpectly

7. USB