Blog

Top
  • Canvas + Accelerometer on Android

    by Joe B | Tue, Apr 27, 2010

    Over the past month, I was working from home, and when I wasn’t busy wiping spit-up from my kid’s face, I was working on various stuff, including a new Android PhoneGap demo to replace the one that I took off the Android market. The problem with these demos is that they do not stand [...]

  • iPhoneGap Plugs

    by Jesse | Thu, Apr 1, 2010

    Okay, in your phonegap application in XCode, ( Without EVER having to touch the PhoneGapLib )
    1) right click the plugins folder and select Add/NewFile/ObjectiveCClass
    2) Call your new class : TestPlug
    3) Paste the following code into the .m + .h files:
    // In the .h file …..
    #import
    #import “PhoneGapCommand.h”
    @interface TestPlug : PhoneGapCommand {
    }
    - (void)doit:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
    @end
    // in the [...]