- HelloDuby – A simple Hello World app in Mirah(called Duby before). It uses the XML layout like any other Android app.
- HelloLinear – the LinearLayout example from the Android site.
- HelloRelative – the RelativeLayout example from the Android site.
- HelloTable – the Table example from the Android site.
When you are creating your own apps make sure you add the exec stuff in your build.xml file in your Android app dir. Here’s the snippet
Note that you’ll have to change the arg value for the java exec. change the ../gen/singalong/helloduby/R.java
to something of the form ../gen/your-pkg-path/R.java
. You can leave the rest of the stuff intact.
By doing the above you’ll have the R.layout, R.strings and other R stuff working but in a little different way. You’ll have to do:
import "Layout", "singalong.helloduby.R$layout"
in your Mirah file to be able to refer to layouts like Layout.main
instead of R.layout.main
So for drawable, you can do import "Drawable", "singalong.helloduby.R$drawable"
and then use Drawable.something. This work around is only until the guys get nested classes working in Mirah. Once that works. You’ll be free from this aliasing (i guess that’s what it’s called).
And then in your default.properties file (it’s in the root dir of your application directory), enter the following in a new line:
target-version=android-2.1
If you have a different version, you might want to set that
- Converse: An IRC app by alexsuraci in Mirah.