Try calling super.oncreate before jo.init, etc. I am not familiar with Jo, so just guessing a bit. what is the compile error?
I am attempting, not being a java programmer, to incorporate jo into some code(Android) that appeared in the article in Smart Developer magazine #2 called "Cup of Jo" by Roy Sutton.
The article says "place the following two lines in the startup section appropriate to your platform(e.g. the onDeviceReady function)
jo.load();
App.init();
The following was my attempt to incorporate jo.
package za.co.stockton.Footprints;
import android.app.Activity;
import android.os.Bundle;
import com.phonegap.*;
public class Footprints extends DroidGap
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
jo.load();
App.init();
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
}
but it does not compile and I suspect that I need to import something or other, but what?
Please help if you can.![]()
Try calling super.oncreate before jo.init, etc. I am not familiar with Jo, so just guessing a bit. what is the compile error?
Web: http://tobykurien.com
Twitter: @tobykurien
Hire me for Android development: http://tobykurien.com/android-development-south-africa/
Also, press Ctrl+Shift+O to automatically get the imports you need.
Web: http://tobykurien.com
Twitter: @tobykurien
Hire me for Android development: http://tobykurien.com/android-development-south-africa/
The problem was solved and it was caused by me thinking that jo was Java rather than Javascript. I therefore included those two lines in the wrong place. Should have been in index.html.