Sha256: b1d1e20d88e437be7b48a094d478983719f5d6f98782c89f0197f98ee336a2db

Contents?: true

Size: 1.46 KB

Versions: 4

Compression:

Stored size: 1.46 KB

Contents

package THE_PACKAGE;

import org.ruboto.Script;
import org.ruboto.ScriptLoader;
import java.io.IOException;

public class THE_RUBOTO_CLASS THE_ACTION THE_ANDROID_CLASS {
THE_CONSTANTS

    private final ScriptInfo scriptInfo = new ScriptInfo(CONSTANTS_COUNT);

    public ScriptInfo getScriptInfo() {
        return scriptInfo;
    }

    /****************************************************************************************
     *
     *  Service Lifecycle: onCreate
     */

    // FIXME(uwe):  Only used for block based primary activities.  Remove if we remove support for such.
	public void onCreateSuper() {
	    super.onCreate();
	}

    @Override
    public void onCreate() {
        if (ScriptLoader.isCalledFromJRuby()) {
            super.onCreate();
            return;
        }
	    System.out.println("RubotoService.onCreate()");

        if (JRubyAdapter.setUpJRuby(this)) {
            // TODO(uwe):  Only needed for non-class-based definitions
            // Can be removed if we stop supporting non-class-based definitions
    	    JRubyAdapter.defineGlobalVariable("$context", this);
    	    JRubyAdapter.defineGlobalVariable("$service", this);
    	    // TODO end

            ScriptLoader.loadScript(this);
        } else {
            // FIXME(uwe):  What to do if the Ruboto Core platform cannot be found?
        }
    }

  /****************************************************************************************
   * 
   *  Generated Methods
   */

THE_METHODS

}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruboto-0.9.0 assets/src/RubotoService.java
ruboto-0.9.0.rc.1 assets/src/RubotoService.java
ruboto-0.9.0.rc.0 assets/src/RubotoService.java
ruboto-0.8.1 assets/src/RubotoService.java