Posts

Showing posts from October, 2013

IOS Java App (RoboVM) communicating with server (Versile)

Before you continue - check out the demonstration video:


The demonstration uses RoboVM to build an IOS app (written in Java), and Versile to create a server and provide communication between the app and server.

Details of configuring Versile and RoboVM are not described here. Go to RoboVM website, and check my earlier Versile blog posts for more info.

The source for the IOS app is based on the RoboVM example:

import java.util.Date;
import org.robovm.cocoatouch.coregraphics.*;
import org.robovm.cocoatouch.foundation.*;
import org.robovm.cocoatouch.uikit.*;
import org.robovm.objc.block.VoidBlock;
import org.robovm.rt.bro.Bro;
import org.robovm.rt.bro.NativeObject;
import org.robovm.rt.bro.annotation.Bridge;
import org.robovm.rt.bro.annotation.Library;
import org.versile.Versile;
import org.versile.orb.entity.VProxy;
import org.versile.reactor.url.VUrl;
import org.versile.vse.VSEResolver;
import org.versile.vse.util.VFunction;

public class VersileRoboVM extends UIApplicationDelegate.Adapter {

    static…