Results 1 to 4 of 4

Thread: Smart Developer magazine issue #2 article

  1. #1
    Becoming more Chatty
    Join Date
    Jul 2011
    Location
    Midrand
    Posts
    42
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    8

    Smart Developer magazine issue #2 article

    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.

  2. #2
    Administrator
    Join Date
    Apr 2010
    Location
    Midrand
    Posts
    564
    Thanks
    1
    Thanked 25 Times in 16 Posts
    Rep Power
    16
    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/

  3. #3
    Administrator
    Join Date
    Apr 2010
    Location
    Midrand
    Posts
    564
    Thanks
    1
    Thanked 25 Times in 16 Posts
    Rep Power
    16
    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/

  4. #4
    Becoming more Chatty
    Join Date
    Jul 2011
    Location
    Midrand
    Posts
    42
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    8
    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.

Similar Threads

  1. Android 10' Tablet PC with Vodacom 3G Issue
    By CraigBPG in forum General Discussions
    Replies: 2
    Last Post: 01-06-2011, 17:05
  2. Android Tablet PC with Vodacom 3G Issue
    By websiteideas in forum General Discussions
    Replies: 6
    Last Post: 16-05-2011, 16:52
  3. Looking for android developer job
    By kkabini in forum Jobs
    Replies: 2
    Last Post: 29-03-2011, 07:33
  4. Android Developer Day
    By nishern in forum General Discussions
    Replies: 23
    Last Post: 10-01-2011, 16:03
  5. Looking for android developer job
    By kkabini in forum Jobs
    Replies: 0
    Last Post: 09-01-2011, 21:34

Visitors found this page by searching for:

android developer magazine

smart developer magazine

roy sutton jo phonegap

Smart Developer magazine #2 Article Cup of Jo by Roy Sutton

download smart developer magazine issue #2Android Magazine Issue 4android magazine edition 2smart developer download issue 2android magazinecup of jo smart developerSmart Developer 01 android descargar españolandroid developers forum or magazine developers magazinejo smart-developer android developer code magazinesmart developer 01SMART DEVELOPER androidSmart Developer magazine Roy Suttonsmart developer issue 03cup of jo roy suttonvb forum Smart Magazineandroid magazine issue 2smart developer magazine issue 4smart developer issue #2phonegap tablet samsung android_asset
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •