mercredi 10 décembre 2014

Sencha Touch with Phonegap

I can't get a phonegap.local.properties, config.xml and packager.json. I'd like to use the phonegap camera API!!!!!!

When I use sencha cmd(version 5.0.2.270), there is no error,,,


[INF] Creating App[INF] Adding native build to app.json[INF] Application has been initialized for native packaging. Please edit app.json and add platform(s) to build for.

Oh, and I add {"platform": "android",} and "js": [ {"path": "cordova-2.2.0.js", "remote": true}....


Is it correct? How can I uses the phonegap api?

what should I do?


Here is a part i want to use phonegap API

------------------------------------------------------------------

Ext.define('TestCamera.view.Main', {

extend: 'Ext.Panel',

xtype: 'main',


config: {

tabBarPosition: 'bottom',


items: [

{

xtype: "button",

text: "Photo",

handler: function() {

function success(image_uri) {


navigator.camera.getPicture(success, fail,

{

quality: 50,

destinationType: navigator.camera.DestinationType.FILE_URI,

sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY

}

);

}

}

]

}

});






Sencha Touch with Phonegap

Aucun commentaire:

Enregistrer un commentaire