This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Android REPL - add* syntax-sugar not available in constructor


* teyc [2012-01-29 09:22] writes:

> Instructions: 
>
> ant debug uninstall installd
> adb shell start am -n kawa.android/kawa.android.hello
> adb logcat

I think there is a minor bug here. It should be:
  adb shell am start -n kawa.android/kawa.android.hello

>
> The IP address is displayed on the activity screen. If you are on emulator, 
> then
>
>   adb forward tcp:4444 tcp:4444
>   telnet localhost 4444
>
> otherwise, you should be able to telnet to port 4444 on the displayed IP
> Address.

Port forwarding works for the emulator and also over the USB port to a
real device.

The output of adb logcat should contain something like this:

I/ActivityManager(  130): Start proc kawa.android for activity kawa.android/.hello: pid=20275 uid=10044 gids={3003, 1015}
V/kawa-hello(20275): listing on 4444 (ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444])
V/kawa-hello(20275): connected Socket[addr=/127.0.0.1,port=45549,localport=4444] 
V/kawa-hello(20275): starting telnet repl Socket[addr=/127.0.0.1,port=45549,localport=4444] kawa.standard.Scheme@40860cc0
V/kawa-hello(20275): listing on 4444 (ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444])


BTW, I also see things like

I/dalvikvm(20275): Failed resolving Lgnu/kawa/servlet/KawaHttpHandler; interface 15 'Lcom/sun/net/httpserver/HttpHandler;'

Looks like KawaHttpHandler should be disabled when compiling for Android.

Helmut


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]