Running an Enyo 1.0 App on Android (with PhoneGap) - help getting started

edited February 2012 in Packaging Apps
I'm trying to get GraphCalc (https://developer.palm.com/appredirect/?packageid=com.rundavidrun.graphcalc) ported over to Android and iOS using PhoneGap + EnyoJS. Unfortunately, I can't even get an Enyo HelloWorld to run. Here, I'll post the steps I've taken so far and hopefully there is something I missed.

First, I went through the PhoneGap Android tutorial (http://phonegap.com/start#android). Got the Hello World text on the emulator. Hooray! Then I followed the steps in the similarly named thread (http://forums.enyojs.com/discussion/51/running-an-enyo-1-0-app-on-android-with-phonegap). Unfortunately, I'm only getting a gray screen.

Here's my Eclipse directory structure: Link to picture.

Note that I left the Hello World in the index.html file just to make sure it was still getting to that point. Without it, I just get a blank screen. Here is the text of the other files pictured:

appinfo.json
{
	"id": "com.squeakydogsoftware.helloworld",
	"version": "1.1.0",
	"vendor": "Squeaky Dog Software",
	"type": "web",
	"main": "index.html",
	"title": "Hello World",
	"icon": "icon.png",
	"uiRevision": 2
}
depends.js
enyo.depends(
	"MainScreen.js",
);
MainScreen.js
enyo.kind({
	name: "MainScreen",
	caption: "Main",
	kind: enyo.VFlexBox,
	components: [
		{content: "Hello World from Enyo"}
 	]
});
App.java
package com.squeakydogsoftware.helloworld;

import com.phonegap.*;
import android.os.Bundle;

public class App extends DroidGap {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.init();
        
        // Disable scrollbars 
        super.appView.setVerticalScrollBarEnabled(false);
        super.appView.setHorizontalScrollBarEnabled(false);
        
        super.setBooleanProperty("keepRunning", false); 
        
        super.loadUrl("file:///android_asset/www/index.html", 1000);
    }
    
    //--> webOS Style where exiting the app kills it. This simply restarts the app.
    protected void onResume()     {
    	super.loadUrl("file:///android_asset/www/index.html", 1000);
        super.onResume();
     } 
}
Unfortunately, I can't get anything from Enyo to render. Here is the result on the emulator: Link to picture.

Does anyone notice anything wrong? Anything else I should try?

Comments

Sign In or Register to comment.