public inbox for
 help / color / mirror / Atom feed
From: "Peter" <>
To: kawa mailing list <>
Subject: Problems with old kawa android code
Date: Mon, 07 Dec 2020 22:28:28 +0100	[thread overview]
Message-ID: <> (raw)


I have a bunch of old apps, that used to compile fine with kawa ~2.

Now I'm running into many problems :-/ One of them is as follows:

Code (foo.scm):

(require 'android-defs)
(define (bar (context :: android.content.Context))
  (let ((layout (android.widget.LinearLayout context)))

Compile with:
CLASSPATH=/~/src/android/kawa/kawa.jar:/opt/android-sdk/platforms/android-14/android.jar java kawa.repl -d bin/classes -P at.nexoid. --module-static-run --warn-undefined-variable --warn-unknown-member --warn-invoke-unknown-method -C foo.scm

foo.scm:3:17: warning - type is incompatible with required type android.view.View
foo.scm:3:46: warning - type android.content.Context is incompatible with required type android.view.View

I don't understand either of these.. The single parameter to the
constructor on line 3 (android.widget.LinearLayout) is a Context, as it
should be.. why does kawa want a *View* here?

Also, where does the Activity come from at all? I don't mention it
anywhere, why does kawa *want* an Activity here?

Thanks for any help with this :-/

Greetings, Peter

             reply	other threads:[~2020-12-07 21:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-07 21:28 Peter [this message]
2020-12-08  1:22 ` Per Bothner
2020-12-08  9:10   ` Peter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).