With a bit of futzing around I was able to get a hello world application
working with Android 1.5, but I'm running into an issue with using the
autogenerated resource class. I changed the classpath to
${external-libs-folder}/kawa.jar:${android-jar}:${out-classes}
and this /seemed/ to pick up the definition of R from R.class, but when
I tried:
(define-simple-class KawaHello (android.app.Activity)
((onCreate (sIS :: android.os.Bundle)) :: void
(invoke-special android.app.Activity (this) 'onCreate sIS)
((this):setContentView R:.layout:.main)))
It built with a few warnings and then proceeded to crash and burn. I
tried replacing R:... with:
(static-field (static-field R 'layout) 'main)
And got:
[kawa] ... no slot `layout' in kawa.android.hello.R
[kawa] ... warning - more than one possibly applicable method
'setContentView' in kawa.android.hello.KawaHello