sencha-touch-2

Which one is better to use Sencha Touch or phonegap for android? [closed]

不问归期 提交于 2019-12-03 03:24:44
I have searched many articles on Sencha Touch and Phonegap but i was unable to judge which framework is the better to integrate while developing my Android App. and even i got many stuffs on difference between Sencha Touch and Phonegap but it was not enough to recognize which is better framework to use. So plz any one tell which is good to use. Sencha Touch OR Phonegap Gajotres You are asking about 2 completely different frameworks. Phonegap is only a wrapper framework around other HTML5 GUI frameworks. It can only be used to create a hybrid mobile application and to give it ability to access

including sencha touch 2 in eclipse

泄露秘密 提交于 2019-12-02 22:59:24
问题 i am using sencha touch 2 for first time .i have installed mds applaud plugin with sencha touch support for eclipse i start project by including sencha touch library as shown below. then i add sencha code as follows but when i run the programme in android emulator instead of printing hello world it shows blank white screen as below. can anyone help me how to run this application sucessfully ? 回答1: I'm pretty new to this, but I found that you can test the view in your browser by directing it

Pass Argument From tpl Sencha

最后都变了- 提交于 2019-12-02 21:31:28
问题 My json is as follow: ({ "status":"TRUE", "message":"Words", "data":[ { "name":"paint", "author":"snooky", "word_id":"1", "category":"Business", "definitions":[ { "rating":"Green", "defintion":"to put color to in something", "def_id":"1", "example":null, "author":"pit", "is_favourite":"yesStar" }, { "rating":"Red", "defintion":"this is a new definition of word paint.", "def_id":"42", "example":null, "author":"bull", "is_favourite":"noStar" } ] } ] }) I am parsing this value and show it in tpl

How to make a signed APK in Sencha Touch 2

帅比萌擦擦* 提交于 2019-12-02 21:22:50
Dear All, I have successfully made an application using Sencha touch 2 it's working fine in my Android device, also on Tablet and emulator. But the problem is that the apk file could not be uploaded on Android Market it shows me a error: .apk is not signed also validity year 50 Error in Google market -: Google Play does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. I have changed my certificate also "configuration":"Release" but not get any success. Dear i am also sharing my whole configuration file. If you find any of the

How does onUpdated work

醉酒当歌 提交于 2019-12-02 19:57:31
问题 I'm currently trying to check wether there is a new update of my app before the whole app is loading, this in order to speed the loading up a bit. So I was trying to figure out how and when the onUpdated function is called but I can't seem to find anything in the ST sources. Ext.application({ ... onUpdated: function() { var title, message; title = 'Application Update'; message = 'A new version of this site is available. Reload now?'; Ext.Msg.confirm(title, message, function(buttonId) { if

Instruct Sencha SDK tools to bundle other js files specified in app.json

你。 提交于 2019-12-02 19:42:02
My app.json file of a Sencha touch 2 application contain. "js": [ { "path": "sdk/sencha-touch.js" }, {"path": "js/mootools-1.2.5-core.js"}, // I want these files to be bundled too {"path": "js/mootools-1.2.5.1-more.js"}, // <----------+ {"path": "js/soundmanager2-nodebug-jsmin.js"}, // <----+ ... // <----+ and there are more. ... { "path": "app.js", "bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */ "update": "delta" }, Now I see when I invoke sencha app build production It compiles all the sencha classes into a giant app.js file. But all my

How to do a self-destroy inside a custom component in Sencha Touch

丶灬走出姿态 提交于 2019-12-02 18:09:50
问题 update: new code: Ext.define('Fiddle.MyCmp',{ extend:'Ext.Component' ,alias:'widget.mycmp' ,config:{ html:'MyCmp' } ,initialize:function() { var me = this; console.log(me); Ext.Function.defer(me.destroy, 5000, me); Ext.Function.defer(function(){ console.log('after 8 seconds'); console.log(this); }, 8000, me); } }); Ext.application({ name : 'Fiddle', ref:{ cmp: 'mycmp' }, launch : function() { Ext.Viewport.add({ xtype:'mycmp' }); } }); Still after 8 seconds, I still can print out the component

How to use json proxy to access remote services during development

為{幸葍}努か 提交于 2019-12-02 16:33:22
问题 This is my doubt after going through How to send headers while using jsonp proxy? and How Ajax call is working in mobile app (PhoneGap), but not in PC browser? As per this we can use json proxy instead of jsonp in mobile but not in desktop browser. This sounds good but my problem is I am using my desktop as develop environment and browser is quickest way to test and debug whatever I am doing but if I use json proxy this won't work because of cross domain issues. Please suggest ways such that

Sencha Touch JSON Format

℡╲_俬逩灬. 提交于 2019-12-02 12:38:39
I'm trying to input a JSON file with the following format: [{"target": "stats.server14", "datapoints": [[0.0, 1340034660], [0.016666666666666666, 1340034720], [0.11666666666666667, 1340034780], [0.18333333333333332, 1340034840], [0.05, 1340034900], [0.0, 1340034960], [0.05, 1340035020],[null, 1340121000]]}] I cannot figure out how to parse this, as it includes metatags and nested data points. Here is what I have so far: Ext.regModel('DataModel', { fields: [ {name: 'target', type: 'string'}, {name: 'datapoints', type: 'string'} ] It just returns the data points in one big string. I'd like to

getting index value 0 from dataview any list itemtap from sencha touch

江枫思渺然 提交于 2019-12-02 12:35:08
问题 I am unable to get index value form the dataview: { xtype: 'list', itemId: 'catList', store: 'CategoryStore', scrollable: false, layout: 'fit', itemHeight: 20, itemTpl: [ '<div>', '<tpl for="data">', '<span >{category_name}</span> ', '</tpl>', '</div>'], listeners: { 'itemtap': function(list, index, target, record, e, eOpts){ console.log(record.get('cat_id')); } } } Edited: If i put data static on store it works fine but it does not work while getting data from server: it works like as