I am writing pure Java interpreter for Android
The language itself looks similar to JavaScript
The goal is to be able to write majority of apps on the Market
using scripts
It is in Alpha stage
The interpreter jar right now is 62 Kb
If you are interested to see how it works,
install apk from link below, it has examples of scripts and the src
Long press entry to see it's source
Please let me know what you think.
Thanks

http://gmlvsk.appspot.com/apk/IProgram.apk


This is just one of the examples.
It places 2 buttons on screen and changes text when you click them
-------------------------------------------------------------


var layout;
var button1, button2;
var cb1[], cb2[];
var counter1 = 0;
var counter2 = 0;

layout = LinearLayout.newObj();
layout.setMainView();

button1 = Button.newObj( "button1" );
button2 = Button.newObj( "button2" );

cb1["onClick"] = {
  counter1++;
  button1.setText( "clicked " + counter1 + " times" );
};
button1.setCallback( cb1 );

cb2["onClick"] = {
  counter2++;
  button2.setText( "clicked " + counter2 + " times" );
};
button2.setCallback( cb2 );

layout.addView( button1, LinearLayout.FILL, LinearLayout.WRAP );
layout.addView( button2, LinearLayout.FILL, LinearLayout.WRAP );

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to