Behavioural Technology Group | BTek

Latest Blogs from BTek

Archive for 'phonegap'

Tracking movement in Sencha Touch with progress updates from a native process

I made a simple GPS tracking app while working out how to send progress updates to a Sencha Touch application from a native process with PhoneGap.The main trick is to return with a “no result” status from the execute function. \src\au\com\btek\tracker\BTekGPSPlugin.java And whenever a progress update is sent, the KeepCallback property on the result must […]

Continue Reading →

Posted in: mobile, mobile sensing, phonegap, sencha touch

Leave a Comment (0) →

Calling Native Code from JavaScript using Sencha Touch and PhoneGap 2.2.0

As part of the mobile sensing framework, I needed to call native code from JavaScript in Sencha Touch through PhoneGap. But ever since Cordova 1.9.0 was released, none of the plugin examples seem to work anymore. So here is one that does. The cordova.exec() function looks up the third parameter (‘BTekPlugin’) in \res\xml\config.xml to get […]

Continue Reading →

Posted in: mobile, mobile sensing, phonegap, sencha touch

Leave a Comment (2) →